Skip to content

Commit 24e0f52

Browse files
committed
Fix minor CS violations
Signed-off-by: George Steel <george@net-glue.co.uk>
1 parent 6400852 commit 24e0f52

11 files changed

+59
-64
lines changed

phpcs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
55
>
6+
<arg value="ps" />
67
<!-- Paths to check -->
78
<file>src</file>
89
<file>test</file>

src/Generator/ClassGenerator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use function sprintf;
2424
use function str_contains;
2525
use function str_replace;
26-
use function strpos;
2726
use function strrpos;
2827
use function strtolower;
2928
use function substr;
@@ -185,7 +184,6 @@ public static function fromReflection(ClassReflection $classReflection)
185184
* @configkey properties
186185
* @configkey methods
187186
* @throws Exception\InvalidArgumentException
188-
* @param array $array
189187
* @return static
190188
*/
191189
public static function fromArray(array $array)

src/Generator/DocBlockGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ public static function fromReflection(DocBlockReflection $reflectionDocBlock)
6161
* @configkey longdescription string The long description for this doc block
6262
* @configkey tags array
6363
* @throws Exception\InvalidArgumentException
64-
* @param array $array
6564
* @return DocBlockGenerator
6665
*/
6766
public static function fromArray(array $array)

src/Generator/FileGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public function __construct($options = null)
9393
* @deprecated this API is deprecated, and will be removed in the next major release. Please
9494
* use the other constructors of this class instead.
9595
*
96-
* @param array $values
9796
* @return FileGenerator
9897
*/
9998
public static function fromArray(array $values)

src/Generator/InterfaceGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public static function fromReflection(ClassReflection $classReflection)
7979
* @configkey constants
8080
* @configkey methods
8181
* @throws Exception\InvalidArgumentException
82-
* @param array $array
8382
* @return static
8483
*/
8584
public static function fromArray(array $array)

src/Generator/MethodGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ protected static function clearBodyIndention($body)
134134
* @configkey static bool
135135
* @configkey visibility string
136136
* @throws Exception\InvalidArgumentException
137-
* @param array $array
138137
* @return MethodGenerator
139138
*/
140139
public static function fromArray(array $array)

src/Generator/ParameterGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public static function fromReflection(ParameterReflection $reflectionParameter)
7272
* @configkey sourcecontent string
7373
* @configkey omitdefaultvalue bool
7474
* @throws Exception\InvalidArgumentException
75-
* @param array $array
7675
* @return ParameterGenerator
7776
*/
7877
public static function fromArray(array $array)

src/Generator/PropertyGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ public static function fromReflection(PropertyReflection $reflectionProperty)
113113
* @configkey omitdefaultvalue bool
114114
* @configkey readonly bool
115115
* @configkey type null|TypeGenerator
116-
* @param array $array
117116
* @return static
118117
* @throws Exception\InvalidArgumentException
119118
*/

src/Generator/TraitGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public static function fromReflection(ClassReflection $classReflection)
7070
* @configkey properties
7171
* @configkey methods
7272
* @throws Exception\InvalidArgumentException
73-
* @param array $array
7473
* @return static
7574
*/
7675
public static function fromArray(array $array)

src/Generator/ValueGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ class ValueGenerator extends AbstractGenerator
6262
/** @var self::OUTPUT_* */
6363
protected string $outputMode = self::OUTPUT_MULTIPLE_LINE;
6464

65-
/** @var array */
6665
protected array $allowedTypes = [];
6766

6867
/**

0 commit comments

Comments
 (0)