Passed
Pull Request — master (#19)
by
unknown
02:19
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/File.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
      * @param string $error The error message.
143 143
      * @param int $line The line on which the error occurred.
144 144
      * @param string $code A violation code unique to the sniff message.
145
-     * @param array $data Replacements for the error message.
145
+     * @param string[] $data Replacements for the error message.
146 146
      * @param int $severity The severity level for this error. A value of 0
147 147
      *                      will be converted into the default severity level.
148 148
      *
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     public function addFixableError($error, $stackPtr, $code = '', array $data = [], $severity = 0)
82 82
     {
83
-         return $this->baseFile->addFixableError($error, $stackPtr, $code, $data, $severity);
83
+            return $this->baseFile->addFixableError($error, $stackPtr, $code, $data, $severity);
84 84
     }
85 85
 
86 86
     /**
Please login to merge, or discard this patch.
src/Standards/BestIt/CodeSniffer/Helper/DocSummaryHelper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     /**
76 76
      * Returns comment summary token.
77 77
      *
78
-     * @return array Summary token array
78
+     * @return integer Summary token array
79 79
      */
80 80
     public function getCommentSummaryToken()
81 81
     {
Please login to merge, or discard this 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/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/DocTagHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
         $this->file->getFixer()->beginChangeset();
245 245
 
246
-        $content = $this->file->getEolChar() . str_repeat('    ', $tagToken['level']) . ' *';
246
+        $content = $this->file->getEolChar().str_repeat('    ', $tagToken['level']).' *';
247 247
 
248 248
         $this->file->getFixer()->addContentBefore($eolPtr, $content);
249 249
 
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
             array_column($commentTags, 'content')
480 480
         );
481 481
 
482
-        uasort($tagNames, function ($tagA, $tagB) use ($sortedMetaTags) {
482
+        uasort($tagNames, function($tagA, $tagB) use ($sortedMetaTags) {
483 483
             $expectedPosA = array_search($tagA, $sortedMetaTags, true);
484 484
             $expectedPosB = array_search($tagB, $sortedMetaTags, true);
485 485
 
Please login to merge, or discard this patch.