Completed
Pull Request — master (#39)
by Björn
03:41 queued 40s
created
src/Standards/BestIt/CodeSniffer/Helper/DocDescriptionHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Standards/BestIt/CodeSniffer/Helper/DocSummaryHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Standards/BestIt/CodeSniffer/File.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Standards/BestIt/CodeSniffer/Helper/DocTagSortingHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Standards/BestIt/CodeSniffer/Helper/DocTagHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Standards/BestIt/CodeSniffer/Helper/DocTagGroupHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Standards/BestIt/Sniffs/TypeHints/ReturnTypeDeclarationSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@
 block discarded – undo
328 328
         );
329 329
 
330 330
         if ($sniffName) {
331
-            $sniffFQCN .= '.' . $sniffName;
331
+            $sniffFQCN .= '.'.$sniffName;
332 332
         }
333 333
 
334 334
         return $sniffFQCN;
Please login to merge, or discard this patch.
src/Standards/BestIt/Sniffs/Functions/FluentSetterSniff.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.