@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * |
| 95 | 95 | * @var string |
| 96 | 96 | */ |
| 97 | - private const MESSAGE_TAG_MIXED_TYPE = 'We suggest that you avoid the "mixed" type and declare the ' . |
|
| 97 | + private const MESSAGE_TAG_MIXED_TYPE = 'We suggest that you avoid the "mixed" type and declare the '. |
|
| 98 | 98 | 'required types in detail.'; |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -195,13 +195,13 @@ discard block |
||
| 195 | 195 | $this->stackPos - 1 |
| 196 | 196 | ); |
| 197 | 197 | |
| 198 | - $tagPosBeforeThis = array_filter($tagPosBeforeThis, function (int $position) { |
|
| 198 | + $tagPosBeforeThis = array_filter($tagPosBeforeThis, function(int $position) { |
|
| 199 | 199 | return $this->tokens[$position]['content'] === '@param'; |
| 200 | 200 | }); |
| 201 | 201 | |
| 202 | 202 | $varOfThisTag = array_values($this->varTokens)[count($tagPosBeforeThis)]; |
| 203 | 203 | |
| 204 | - return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>' . preg_quote($varOfThisTag['content'], '/') . |
|
| 204 | + return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>'.preg_quote($varOfThisTag['content'], '/'). |
|
| 205 | 205 | ') ?(?P<desc>.*)/m'; |
| 206 | 206 | } |
| 207 | 207 | |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | ->setToken($this->token); |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | - $this->varTokens = array_filter($this->tokens, function (array $token) use ($varPositions): bool { |
|
| 224 | + $this->varTokens = array_filter($this->tokens, function(array $token) use ($varPositions): bool { |
|
| 225 | 225 | return in_array($token['pointer'], $varPositions, true); |
| 226 | 226 | }); |
| 227 | 227 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | * |
| 44 | 44 | * @var string |
| 45 | 45 | */ |
| 46 | - private const MESSAGE_TAG_MIXED_TYPE = 'We suggest that you avoid the "mixed" type and declare the ' . |
|
| 46 | + private const MESSAGE_TAG_MIXED_TYPE = 'We suggest that you avoid the "mixed" type and declare the '. |
|
| 47 | 47 | 'required types in detail.'; |
| 48 | 48 | |
| 49 | 49 | /** |