Completed
Pull Request — master (#39)
by Björn
03:41 queued 40s
created
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.