@@ -56,7 +56,7 @@ |
||
| 56 | 56 | */ |
| 57 | 57 | protected function isValidContent(?string $tagContent = null, ?callable $callback = null): bool |
| 58 | 58 | { |
| 59 | - return $this->isValidContentInTrait($tagContent, function (array $matches): bool { |
|
| 59 | + return $this->isValidContentInTrait($tagContent, function(array $matches): bool { |
|
| 60 | 60 | return (bool) filter_var($matches['mail'], FILTER_VALIDATE_EMAIL); |
| 61 | 61 | }); |
| 62 | 62 | } |
@@ -175,24 +175,24 @@ discard block |
||
| 175 | 175 | |
| 176 | 176 | // Insert new line between groups. |
| 177 | 177 | if ($isGroupSwitch) { |
| 178 | - $newContent .= $lineStartingPadding . '*' . $eolChar; |
|
| 178 | + $newContent .= $lineStartingPadding.'*'.$eolChar; |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | // Create the new Tag. |
| 182 | 182 | // WARNING We do not a line break in the tag summary. |
| 183 | - $newContent .= $lineStartingPadding . '* ' . |
|
| 183 | + $newContent .= $lineStartingPadding.'* '. |
|
| 184 | 184 | // Remove the "ending" whitespace if there are no more contents |
| 185 | 185 | trim( |
| 186 | - $thisTagContent . ' ' . |
|
| 186 | + $thisTagContent.' '. |
|
| 187 | 187 | implode(' ', array_column($tag['contents'] ?? [], 'content')) |
| 188 | - ) . |
|
| 188 | + ). |
|
| 189 | 189 | $eolChar; |
| 190 | 190 | |
| 191 | 191 | $prevTagContent = $thisTagContent; |
| 192 | 192 | $withReturn = $isReturn; |
| 193 | 193 | } |
| 194 | 194 | |
| 195 | - $newContent .= $lineStartingPadding . '*/' . $eolChar; |
|
| 195 | + $newContent .= $lineStartingPadding.'*/'.$eolChar; |
|
| 196 | 196 | |
| 197 | 197 | return $newContent; |
| 198 | 198 | } |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | |
| 245 | 245 | $fixer->addContentBefore( |
| 246 | 246 | $token['pointer'], |
| 247 | - $this->file->getEolChar() . $lineStartPadding . '* ' |
|
| 247 | + $this->file->getEolChar().$lineStartPadding.'* ' |
|
| 248 | 248 | ); |
| 249 | 249 | |
| 250 | 250 | $fixer->endChangeset(); |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | { |
| 337 | 337 | $tagCounts = $this->docTagHelper->getTagCounts($tokens); |
| 338 | 338 | |
| 339 | - usort($tokens, function (array $leftToken, array $rightToken) use ($tagCounts): int { |
|
| 339 | + usort($tokens, function(array $leftToken, array $rightToken) use ($tagCounts): int { |
|
| 340 | 340 | $return = 0; |
| 341 | 341 | $leftTagName = $leftToken['content']; |
| 342 | 342 | $rightTagName = $rightToken['content']; |
@@ -173,13 +173,13 @@ discard block |
||
| 173 | 173 | $this->stackPos - 1 |
| 174 | 174 | ); |
| 175 | 175 | |
| 176 | - $tagPositionsBeforeThis = array_filter($tagPositionsBeforeThis, function (int $position) { |
|
| 176 | + $tagPositionsBeforeThis = array_filter($tagPositionsBeforeThis, function(int $position) { |
|
| 177 | 177 | return $this->tokens[$position]['content'] === '@param'; |
| 178 | 178 | }); |
| 179 | 179 | |
| 180 | 180 | $varOfThisTag = array_values($this->varTokens)[count($tagPositionsBeforeThis)]; |
| 181 | 181 | |
| 182 | - return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>' . preg_quote($varOfThisTag['content'], '/') . |
|
| 182 | + return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>'.preg_quote($varOfThisTag['content'], '/'). |
|
| 183 | 183 | ') ?(?P<desc>.*)/m'; |
| 184 | 184 | } |
| 185 | 185 | |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | ->setToken($this->token); |
| 201 | 201 | } |
| 202 | 202 | |
| 203 | - $this->varTokens = array_filter($this->tokens, function (array $token) use ($varPositions): bool { |
|
| 203 | + $this->varTokens = array_filter($this->tokens, function(array $token) use ($varPositions): bool { |
|
| 204 | 204 | return in_array($token['pointer'], $varPositions, true); |
| 205 | 205 | }); |
| 206 | 206 | |