@@ -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 | } |
@@ -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; |
@@ -28,8 +28,8 @@ |
||
28 | 28 | */ |
29 | 29 | public function createFromTagName(File $file, string $tagName): ?ValidatorInterface |
30 | 30 | { |
31 | - $validatorClass = 'BestIt\\CodeSniffer\\Commenting\\TagValidator\\Validators\\' . |
|
32 | - ucfirst(substr($tagName, 1)) . 'Validator'; |
|
31 | + $validatorClass = 'BestIt\\CodeSniffer\\Commenting\\TagValidator\\Validators\\'. |
|
32 | + ucfirst(substr($tagName, 1)).'Validator'; |
|
33 | 33 | |
34 | 34 | return (class_exists($validatorClass, true)) ? new $validatorClass($file) : null; |
35 | 35 | } |