Completed
Push — master ( b231ee...7cd792 )
by Björn
03:22
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.
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/CodeSniffer/AbstractFileDecorator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
      * @param string $error The error message.
114 114
      * @param int $stackPtr The stack position where the error occurred.
115 115
      * @param string $code A violation code unique to the sniff message.
116
-     * @param array $data Replacements for the error message.
116
+     * @param string[] $data Replacements for the error message.
117 117
      * @param int $severity The severity level for this error. A value of 0
118 118
      *                         will be converted into the default severity level.
119 119
      *
Please login to merge, or discard this patch.
src/Standards/BestIt/Sniffs/DocTags/DeprecatedTagSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      *
27 27
      * @var string
28 28
      */
29
-    private const MESSAGE_TAG_MISSING_DATES = 'Please provide the version since when its deprecated and when it will ' .
29
+    private const MESSAGE_TAG_MISSING_DATES = 'Please provide the version since when its deprecated and when it will '.
30 30
         'be removed (Pattern: %s).';
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
src/Standards/BestIt/Sniffs/DocTags/PackageTagSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     {
42 42
         $this->file->getFixer()->replaceToken(
43 43
             TokenHelper::findNext($this->file->getBaseFile(), [T_DOC_COMMENT_STRING], $this->stackPos),
44
-            ' ' . $currentNamespace
44
+            ' '.$currentNamespace
45 45
         );
46 46
     }
47 47
 
Please login to merge, or discard this patch.
src/Standards/BestIt/Sniffs/DocTags/TagContentFormatTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
     protected function processTagContent(?string $tagContent = null): void
98 98
     {
99 99
         if (!$this->isValidContent($tagContent)) {
100
-            $this->file->{'add' . ($this->asError() ? 'Error' : 'Warning')}(...$this->getReportData($tagContent));
100
+            $this->file->{'add'.($this->asError() ? 'Error' : 'Warning')}(...$this->getReportData($tagContent));
101 101
         }
102 102
     }
103 103
 }
Please login to merge, or discard this patch.