Passed
Push — master ( b89bd1...c5827f )
by Björn
02:43
created
src/Standards/BestIt/Sniffs/Functions/FluentSetterSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
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.
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.