@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | } |
33 | 33 | |
34 | - array_walk_recursive($opts, function (&$val) { |
|
34 | + array_walk_recursive($opts, function(&$val) { |
|
35 | 35 | if ('true' === $val) { |
36 | 36 | $val = true; |
37 | 37 | } elseif ('false' === $val) { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | $this->invalidTags = array_merge($this->invalidTags, $config['invalidTags'] ?? []); |
34 | 34 | foreach ($this->invalidTags as &$invalidTag) { |
35 | - $invalidTag = substr($invalidTag, 1); |
|
35 | + $invalidTag = substr($invalidTag, 1); |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | foreach ($typedArrayTypes as $typedArrayType) { |
34 | 34 | if ($typedArrayType->getType() instanceof ArrayType) { |
35 | - return $typedArrayType; // e.g. array[][] |
|
35 | + return $typedArrayType; // e.g. array[][] |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 |
@@ -131,7 +131,7 @@ |
||
131 | 131 | $subject->addFnTypeWarning('Missing PHPDoc tag or void type declaration for :subject:'); |
132 | 132 | } |
133 | 133 | } else { |
134 | - $subject->addDocTypeWarning('Add type hint in PHPDoc tag for :subject:'); |
|
134 | + $subject->addDocTypeWarning('Add type hint in PHPDoc tag for :subject:'); |
|
135 | 135 | } |
136 | 136 | } |
137 | 137 | } |
@@ -147,7 +147,7 @@ |
||
147 | 147 | $openScopes = ['<' => 0, '{' => 0, '(' => 0]; |
148 | 148 | |
149 | 149 | $len = strlen($rawType); |
150 | - for ($pos=0; $pos<=$len-1; $pos++) { |
|
150 | + for ($pos = 0; $pos <= $len - 1; $pos++) { |
|
151 | 151 | $ch = $rawType[$pos]; |
152 | 152 | |
153 | 153 | '<' === $ch && $openScopes['<']++; |
@@ -49,7 +49,7 @@ |
||
49 | 49 | // Property keys for CodeElementSniff(s) are applied by the short class name. |
50 | 50 | // E.g. FqcnMethodSniff.invalidTags |
51 | 51 | foreach ($config as $key => $val) { |
52 | - if ('sniffs'!== $key && false !== strpos($key, '.')) { |
|
52 | + if ('sniffs' !== $key && false !== strpos($key, '.')) { |
|
53 | 53 | [$shortClass, $cfgKey] = explode('.', $key, 2); |
54 | 54 | if (isset($rawSniffs[$shortClass])) { |
55 | 55 | $rawSniffs[$shortClass]['config'][$cfgKey] = $val; |