@@ -451,7 +451,7 @@ |
||
| 451 | 451 | /** |
| 452 | 452 | * Returns an array of disallowed tags. |
| 453 | 453 | * |
| 454 | - * @return array List of disallowed tags |
|
| 454 | + * @return string[] List of disallowed tags |
|
| 455 | 455 | */ |
| 456 | 456 | abstract public function getDisallowedTags(); |
| 457 | 457 | } |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | /** |
| 210 | 210 | * Returns pointer to the end of the description. |
| 211 | 211 | * |
| 212 | - * @return int|bool Pointer to the end of the description or false |
|
| 212 | + * @return integer Pointer to the end of the description or false |
|
| 213 | 213 | */ |
| 214 | 214 | private function getCommentDescriptionEndPointer() |
| 215 | 215 | { |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | /** |
| 241 | 241 | * Returns pointer to the start of the long description or false if not found. |
| 242 | 242 | * |
| 243 | - * @return bool|int Pointer to the start of the description or false |
|
| 243 | + * @return integer|null Pointer to the start of the description or false |
|
| 244 | 244 | */ |
| 245 | 245 | private function getCommentDescriptionStartPointer() |
| 246 | 246 | { |
@@ -300,7 +300,7 @@ |
||
| 300 | 300 | |
| 301 | 301 | $this->file->fixer->addContent( |
| 302 | 302 | $descEndPtr, |
| 303 | - $this->file->eolChar . str_repeat(' ', $descEndToken['level']) . ' *' |
|
| 303 | + $this->file->eolChar.str_repeat(' ', $descEndToken['level']).' *' |
|
| 304 | 304 | ); |
| 305 | 305 | |
| 306 | 306 | $this->file->fixer->endChangeset(); |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | /** |
| 76 | 76 | * Returns comment summary token. |
| 77 | 77 | * |
| 78 | - * @return array Summary token array |
|
| 78 | + * @return integer Summary token array |
|
| 79 | 79 | */ |
| 80 | 80 | public function getCommentSummaryToken() |
| 81 | 81 | { |
@@ -238,7 +238,7 @@ |
||
| 238 | 238 | |
| 239 | 239 | $this->file->fixer->addContent( |
| 240 | 240 | $summaryPtr, |
| 241 | - $this->file->eolChar . str_repeat(' ', $summaryToken['level']) . ' *' |
|
| 241 | + $this->file->eolChar.str_repeat(' ', $summaryToken['level']).' *' |
|
| 242 | 242 | ); |
| 243 | 243 | |
| 244 | 244 | $this->file->fixer->endChangeset(); |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | /** |
| 485 | 485 | * Processes found tags - sorts them as needed and multiplies them how often they occur. |
| 486 | 486 | * |
| 487 | - * @return array List of sorted and expanded tags |
|
| 487 | + * @return string[] List of sorted and expanded tags |
|
| 488 | 488 | */ |
| 489 | 489 | private function getExpandedSortedTags() |
| 490 | 490 | { |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | /** |
| 497 | 497 | * Returns sorted comment tag names. |
| 498 | 498 | * |
| 499 | - * @return array List of current sorted comment tags |
|
| 499 | + * @return string[] List of current sorted comment tags |
|
| 500 | 500 | */ |
| 501 | 501 | private function getSortedTags() |
| 502 | 502 | { |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | |
| 272 | 272 | $this->file->fixer->beginChangeset(); |
| 273 | 273 | |
| 274 | - $content = $this->file->eolChar . str_repeat(' ', $tagToken['level']) . ' *'; |
|
| 274 | + $content = $this->file->eolChar.str_repeat(' ', $tagToken['level']).' *'; |
|
| 275 | 275 | |
| 276 | 276 | $this->file->fixer->addContentBefore($eolPtr, $content); |
| 277 | 277 | |
@@ -507,7 +507,7 @@ discard block |
||
| 507 | 507 | array_column($commentTags, 'content') |
| 508 | 508 | ); |
| 509 | 509 | |
| 510 | - uasort($tagNames, function ($tagA, $tagB) use ($sortedMetaTags) { |
|
| 510 | + uasort($tagNames, function($tagA, $tagB) use ($sortedMetaTags) { |
|
| 511 | 511 | $expectedPosA = array_search($tagA, $sortedMetaTags, true); |
| 512 | 512 | $expectedPosB = array_search($tagB, $sortedMetaTags, true); |
| 513 | 513 | |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | |
| 185 | 185 | $phpcsFile->fixer->beginChangeset(); |
| 186 | 186 | $phpcsFile->fixer->addNewlineBefore($closingBracePtr - 1); |
| 187 | - $phpcsFile->fixer->addContentBefore($closingBracePtr - 1, $expectedReturnSpaces . 'return $this;'); |
|
| 187 | + $phpcsFile->fixer->addContentBefore($closingBracePtr - 1, $expectedReturnSpaces.'return $this;'); |
|
| 188 | 188 | $phpcsFile->fixer->addNewlineBefore($closingBracePtr - 1); |
| 189 | 189 | $phpcsFile->fixer->endChangeset(); |
| 190 | 190 | } |