Completed
Push — master ( e2e2f1...f855fb )
by Björn
03:26 queued 42s
created
src/Standards/BestIt/Sniffs/DocTags/TagContentFormatTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
     protected function processTagContent(?string $tagContent = null): void
106 106
     {
107 107
         if (!$this->isValidContent($tagContent)) {
108
-            $this->getFile()->{'add' . ($this->asError() ? 'Error' : 'Warning')}(...$this->getReportData($tagContent));
108
+            $this->getFile()->{'add'.($this->asError() ? 'Error' : 'Warning')}(...$this->getReportData($tagContent));
109 109
         }
110 110
     }
111 111
 }
Please login to merge, or discard this patch.
src/Standards/BestIt/Sniffs/DocTags/ParamTagSniff.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      *
95 95
      * @var string
96 96
      */
97
-    private const MESSAGE_TAG_MIXED_TYPE = 'We suggest that you avoid the "mixed" type and declare the ' .
97
+    private const MESSAGE_TAG_MIXED_TYPE = 'We suggest that you avoid the "mixed" type and declare the '.
98 98
         'required types in detail.';
99 99
 
100 100
     /**
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     {
218 218
         $varOfThisTag = $this->getArgumentTokenOfTag();
219 219
 
220
-        return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>' . preg_quote($varOfThisTag['content'], '/') .
220
+        return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>'.preg_quote($varOfThisTag['content'], '/').
221 221
             ') ?(?P<desc>.*)/m';
222 222
     }
223 223
 
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
             ))->setToken($this->token);
255 255
         }
256 256
 
257
-        $this->varTokens = array_filter($this->tokens, function (array $token) use ($varPositions): bool {
257
+        $this->varTokens = array_filter($this->tokens, function(array $token) use ($varPositions): bool {
258 258
             return in_array($token['pointer'], $varPositions, true);
259 259
         });
260 260
 
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
             $this->stackPos - 1
277 277
         );
278 278
 
279
-        $tagPosBeforeThis = array_filter($tagPosBeforeThis, function (int $position) {
279
+        $tagPosBeforeThis = array_filter($tagPosBeforeThis, function(int $position) {
280 280
             return $this->tokens[$position]['content'] === '@param';
281 281
         });
282 282
 
Please login to merge, or discard this patch.