@@ -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 | } |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | * @param string $error The error message. |
| 143 | 143 | * @param int $line The line on which the error occurred. |
| 144 | 144 | * @param string $code A violation code unique to the sniff message. |
| 145 | - * @param array $data Replacements for the error message. |
|
| 145 | + * @param string[] $data Replacements for the error message. |
|
| 146 | 146 | * @param int $severity The severity level for this error. A value of 0 |
| 147 | 147 | * will be converted into the default severity level. |
| 148 | 148 | * |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | */ |
| 81 | 81 | public function addFixableError($error, $stackPtr, $code = '', array $data = [], $severity = 0) |
| 82 | 82 | { |
| 83 | - return $this->baseFile->addFixableError($error, $stackPtr, $code, $data, $severity); |
|
| 83 | + return $this->baseFile->addFixableError($error, $stackPtr, $code, $data, $severity); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -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 | { |
@@ -240,7 +240,7 @@ |
||
| 240 | 240 | |
| 241 | 241 | $this->file->getFixer()->addContent( |
| 242 | 242 | $summaryPtr, |
| 243 | - $this->file->getEolChar() . str_repeat(' ', $summaryToken['level']) . ' *' |
|
| 243 | + $this->file->getEolChar().str_repeat(' ', $summaryToken['level']).' *' |
|
| 244 | 244 | ); |
| 245 | 245 | |
| 246 | 246 | $this->file->getFixer()->endChangeset(); |
@@ -300,7 +300,7 @@ |
||
| 300 | 300 | |
| 301 | 301 | $this->file->getFixer()->addContent( |
| 302 | 302 | $descEndPtr, |
| 303 | - $this->file->getEolChar() . str_repeat(' ', $descEndToken['level']) . ' *' |
|
| 303 | + $this->file->getEolChar().str_repeat(' ', $descEndToken['level']).' *' |
|
| 304 | 304 | ); |
| 305 | 305 | |
| 306 | 306 | $this->file->getFixer()->endChangeset(); |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | |
| 244 | 244 | $this->file->getFixer()->beginChangeset(); |
| 245 | 245 | |
| 246 | - $content = $this->file->getEolChar() . str_repeat(' ', $tagToken['level']) . ' *'; |
|
| 246 | + $content = $this->file->getEolChar().str_repeat(' ', $tagToken['level']).' *'; |
|
| 247 | 247 | |
| 248 | 248 | $this->file->getFixer()->addContentBefore($eolPtr, $content); |
| 249 | 249 | |
@@ -479,7 +479,7 @@ discard block |
||
| 479 | 479 | array_column($commentTags, 'content') |
| 480 | 480 | ); |
| 481 | 481 | |
| 482 | - uasort($tagNames, function ($tagA, $tagB) use ($sortedMetaTags) { |
|
| 482 | + uasort($tagNames, function($tagA, $tagB) use ($sortedMetaTags) { |
|
| 483 | 483 | $expectedPosA = array_search($tagA, $sortedMetaTags, true); |
| 484 | 484 | $expectedPosB = array_search($tagB, $sortedMetaTags, true); |
| 485 | 485 | |