@@ -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(); |
@@ -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(); |
@@ -87,7 +87,7 @@ |
||
87 | 87 | array $data = [], |
88 | 88 | int $severity = 0 |
89 | 89 | ): bool { |
90 | - return $this->baseFile->addFixableError($error, $stackPtr, $code, $data, $severity); |
|
90 | + return $this->baseFile->addFixableError($error, $stackPtr, $code, $data, $severity); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
@@ -110,7 +110,7 @@ |
||
110 | 110 | array_column($commentTags, 'content') |
111 | 111 | ); |
112 | 112 | |
113 | - uasort($tagNames, function ($tagA, $tagB) use ($sortedMetaTags) { |
|
113 | + uasort($tagNames, function($tagA, $tagB) use ($sortedMetaTags) { |
|
114 | 114 | $expectedPosA = array_search($tagA, $sortedMetaTags, true); |
115 | 115 | $expectedPosB = array_search($tagB, $sortedMetaTags, true); |
116 | 116 |
@@ -244,7 +244,7 @@ |
||
244 | 244 | |
245 | 245 | $this->file->getFixer()->beginChangeset(); |
246 | 246 | |
247 | - $content = $this->file->getEolChar() . str_repeat(' ', $tagToken['level']) . ' *'; |
|
247 | + $content = $this->file->getEolChar().str_repeat(' ', $tagToken['level']).' *'; |
|
248 | 248 | |
249 | 249 | $this->file->getFixer()->addContentBefore($eolPtr, $content); |
250 | 250 |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | if (array_key_exists($lastGroupTagPos + 1, $this->commentTagOrder)) { |
98 | 98 | $tagAfterGroup = $this->getTagByPosition($lastGroupTagPos + 1); |
99 | - $tagAfterLineDiff = $tagAfterGroup['line'] - $lastGroupTag['line']; |
|
99 | + $tagAfterLineDiff = $tagAfterGroup['line'] - $lastGroupTag['line']; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | if ($tagBeforeLineDiff === 1) { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | |
192 | 192 | $this->file->getFixer()->beginChangeset(); |
193 | 193 | |
194 | - $content = $this->file->getEolChar() . str_repeat(' ', $tagToken['level']) . ' *'; |
|
194 | + $content = $this->file->getEolChar().str_repeat(' ', $tagToken['level']).' *'; |
|
195 | 195 | |
196 | 196 | $this->file->getFixer()->addContentBefore($eolPtr, $content); |
197 | 197 |
@@ -328,7 +328,7 @@ |
||
328 | 328 | ); |
329 | 329 | |
330 | 330 | if ($sniffName) { |
331 | - $sniffFQCN .= '.' . $sniffName; |
|
331 | + $sniffFQCN .= '.'.$sniffName; |
|
332 | 332 | } |
333 | 333 | |
334 | 334 | return $sniffFQCN; |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | private function checkForFluentSetterErrors(File $phpcsFile, int $functionPos, int $classPos): void |
108 | 108 | { |
109 | 109 | $tokens = $phpcsFile->getTokens(); |
110 | - $errorData = $phpcsFile->getDeclarationName($classPos) . '::' . $phpcsFile->getDeclarationName($functionPos); |
|
110 | + $errorData = $phpcsFile->getDeclarationName($classPos).'::'.$phpcsFile->getDeclarationName($functionPos); |
|
111 | 111 | |
112 | 112 | $functionToken = $tokens[$functionPos]; |
113 | 113 | $openBracePtr = $functionToken['scope_opener']; |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | ); |
150 | 150 | |
151 | 151 | if ($sniffName) { |
152 | - $sniffFQCN .= '.' . $sniffName; |
|
152 | + $sniffFQCN .= '.'.$sniffName; |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | return $sniffFQCN; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | |
225 | 225 | $phpcsFile->fixer->beginChangeset(); |
226 | 226 | $phpcsFile->fixer->addNewlineBefore($closingBracePtr - 1); |
227 | - $phpcsFile->fixer->addContentBefore($closingBracePtr - 1, $expectedReturnSpaces . 'return $this;'); |
|
227 | + $phpcsFile->fixer->addContentBefore($closingBracePtr - 1, $expectedReturnSpaces.'return $this;'); |
|
228 | 228 | $phpcsFile->fixer->addNewlineBefore($closingBracePtr - 1); |
229 | 229 | $phpcsFile->fixer->endChangeset(); |
230 | 230 | } |