@@ -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 | /** |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace BestIt\CodeSniffer; |
6 | 6 |
@@ -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 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace BestIt\Sniffs\Formatting; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace BestIt\Sniffs\TypeHints; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace BestIt\Sniffs\Commenting; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace BestIt\Sniffs\Functions; |
6 | 6 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | |
188 | 188 | $phpcsFile->fixer->beginChangeset(); |
189 | 189 | $phpcsFile->fixer->addNewlineBefore($closingBracePtr - 1); |
190 | - $phpcsFile->fixer->addContentBefore($closingBracePtr - 1, $expectedReturnSpaces . 'return $this;'); |
|
190 | + $phpcsFile->fixer->addContentBefore($closingBracePtr - 1, $expectedReturnSpaces.'return $this;'); |
|
191 | 191 | $phpcsFile->fixer->addNewlineBefore($closingBracePtr - 1); |
192 | 192 | $phpcsFile->fixer->endChangeset(); |
193 | 193 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace BestIt\CodeSniffer; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace BestIt\CodeSniffer\Helper; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace BestIt\CodeSniffer\Helper; |
6 | 6 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | array_column($commentTags, 'content') |
113 | 113 | ); |
114 | 114 | |
115 | - uasort($tagNames, function ($tagA, $tagB) use ($sortedMetaTags) { |
|
115 | + uasort($tagNames, function($tagA, $tagB) use ($sortedMetaTags) { |
|
116 | 116 | $expectedPosA = array_search($tagA, $sortedMetaTags, true); |
117 | 117 | $expectedPosB = array_search($tagB, $sortedMetaTags, true); |
118 | 118 |