Passed
Push — master ( 699236...db05cc )
by Björn
57s
created
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
     /**
@@ -195,13 +195,13 @@  discard block
 block discarded – undo
195 195
             $this->stackPos - 1
196 196
         );
197 197
 
198
-        $tagPosBeforeThis = array_filter($tagPosBeforeThis, function (int $position) {
198
+        $tagPosBeforeThis = array_filter($tagPosBeforeThis, function(int $position) {
199 199
             return $this->tokens[$position]['content'] === '@param';
200 200
         });
201 201
 
202 202
         $varOfThisTag = array_values($this->varTokens)[count($tagPosBeforeThis)];
203 203
 
204
-        return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>' . preg_quote($varOfThisTag['content'], '/') .
204
+        return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>'.preg_quote($varOfThisTag['content'], '/').
205 205
             ') ?(?P<desc>.*)/m';
206 206
     }
207 207
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                 ->setToken($this->token);
222 222
         }
223 223
 
224
-        $this->varTokens = array_filter($this->tokens, function (array $token) use ($varPositions): bool {
224
+        $this->varTokens = array_filter($this->tokens, function(array $token) use ($varPositions): bool {
225 225
             return in_array($token['pointer'], $varPositions, true);
226 226
         });
227 227
 
Please login to merge, or discard this patch.
src/Standards/BestIt/Sniffs/DocTags/ReturnTagSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      *
44 44
      * @var string
45 45
      */
46
-    private const MESSAGE_TAG_MIXED_TYPE = 'We suggest that you avoid the "mixed" type and declare the ' .
46
+    private const MESSAGE_TAG_MIXED_TYPE = 'We suggest that you avoid the "mixed" type and declare the '.
47 47
         'required types in detail.';
48 48
 
49 49
     /**
Please login to merge, or discard this patch.