Passed
Pull Request — master (#42)
by Ahmad
05:18
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/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.
BestIt/CodeSniffer/Commenting/TagValidator/TagValidatorFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Standards/BestIt/Sniffs/AbstractSniff.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/Commenting/TagSortingSniff.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -175,24 +175,24 @@  discard block
 block discarded – undo
175 175
 
176 176
             // Insert new line between groups.
177 177
             if ($isGroupSwitch) {
178
-                $newContent .= $lineStartingPadding . '*' . $eolChar;
178
+                $newContent .= $lineStartingPadding.'*'.$eolChar;
179 179
             }
180 180
 
181 181
             // Create the new Tag.
182 182
             // WARNING We do not a line break in the tag summary.
183
-            $newContent .= $lineStartingPadding . '* ' .
183
+            $newContent .= $lineStartingPadding.'* '.
184 184
                 // Remove the "ending" whitespace if there are no more contents
185 185
                 trim(
186
-                    $thisTagContent . ' ' .
186
+                    $thisTagContent.' '.
187 187
                     implode(' ', array_column($tag['contents'] ?? [], 'content'))
188
-                ) .
188
+                ).
189 189
                 $eolChar;
190 190
 
191 191
             $prevTagContent = $thisTagContent;
192 192
             $withReturn = $isReturn;
193 193
         }
194 194
 
195
-        $newContent .= $lineStartingPadding . '*/' . $eolChar;
195
+        $newContent .= $lineStartingPadding.'*/'.$eolChar;
196 196
 
197 197
         return $newContent;
198 198
     }
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 
245 245
         $fixer->addContentBefore(
246 246
             $token['pointer'],
247
-            $this->getFile()->getEolChar() . $lineStartPadding . '* '
247
+            $this->getFile()->getEolChar().$lineStartPadding.'* '
248 248
         );
249 249
 
250 250
         $fixer->endChangeset();
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
     {
337 337
         $tagCounts = $this->docTagHelper->getTagCounts($tokens);
338 338
 
339
-        usort($tokens, function (array $leftToken, array $rightToken) use ($tagCounts): int {
339
+        usort($tokens, function(array $leftToken, array $rightToken) use ($tagCounts): int {
340 340
             $return = 0;
341 341
             $leftTagName = $leftToken['content'];
342 342
             $rightTagName = $rightToken['content'];
Please login to merge, or discard this patch.