Passed
Push — master ( 8ab57e...992240 )
by Björn
01:03 queued 10s
created
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.
src/Standards/BestIt/Sniffs/DocTags/TagSortingSniff.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -175,24 +175,24 @@  discard block
 block discarded – undo
175 175
 
176 176
             // Insert new line between groups.
177 177
             if ($isGroupSwitch) {
178
-                $newContent .= $lineStartingPadding . '*' . $eolChar;
178
+                $newContent .= $lineStartingPadding.'*'.$eolChar;
179 179
             }
180 180
 
181 181
             // Create the new Tag.
182 182
             // WARNING We do not a line break in the tag summary.
183
-            $newContent .= $lineStartingPadding . '* ' .
183
+            $newContent .= $lineStartingPadding.'* '.
184 184
                 // Remove the "ending" whitespace if there are no more contents
185 185
                 trim(
186
-                    $thisTagContent . ' ' .
186
+                    $thisTagContent.' '.
187 187
                     implode(' ', array_column($tag['contents'] ?? [], 'content'))
188
-                ) .
188
+                ).
189 189
                 $eolChar;
190 190
 
191 191
             $prevTagContent = $thisTagContent;
192 192
             $withReturn = $isReturn;
193 193
         }
194 194
 
195
-        $newContent .= $lineStartingPadding . '*/' . $eolChar;
195
+        $newContent .= $lineStartingPadding.'*/'.$eolChar;
196 196
 
197 197
         return $newContent;
198 198
     }
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 
245 245
         $fixer->addContentBefore(
246 246
             $token['pointer'],
247
-            $this->file->getEolChar() . $lineStartPadding . '* '
247
+            $this->file->getEolChar().$lineStartPadding.'* '
248 248
         );
249 249
 
250 250
         $fixer->endChangeset();
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
     {
337 337
         $tagCounts = $this->docTagHelper->getTagCounts($tokens);
338 338
 
339
-        usort($tokens, function (array $leftToken, array $rightToken) use ($tagCounts): int {
339
+        usort($tokens, function(array $leftToken, array $rightToken) use ($tagCounts): int {
340 340
             $return = 0;
341 341
             $leftTagName = $leftToken['content'];
342 342
             $rightTagName = $rightToken['content'];
Please login to merge, or discard this patch.
src/Standards/BestIt/Sniffs/DocTags/AbstractRequiredTagsSniff.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         array_walk(
91 91
             $allTags,
92 92
             // TODO: Removed Duplicates
93
-            function (array $tag, int $tagPos) use (&$checkedTags, $tagRules): void {
93
+            function(array $tag, int $tagPos) use (&$checkedTags, $tagRules): void {
94 94
                 $tagContent = substr($tag['content'], 1);
95 95
 
96 96
                 if (!in_array($tagContent, $checkedTags)) {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                             $tagPos,
106 106
                             // We use an error code containing the tag name because we can't configure this rules from
107 107
                             // the outside and need  specific code to exclude the rule for this special tag.
108
-                            self::CODE_TAG_OCCURRENCE_MAX_PREFIX . ucfirst($tagContent),
108
+                            self::CODE_TAG_OCCURRENCE_MAX_PREFIX.ucfirst($tagContent),
109 109
                             [
110 110
                                 $tagContent,
111 111
                                 $maxCount,
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
         array_walk(
132 132
             $rulesWithReq,
133
-            function (array $tagRule, string $tag) use ($checkedRule): void {
133
+            function(array $tagRule, string $tag) use ($checkedRule): void {
134 134
                 $minCount = $tagRule[$checkedRule];
135 135
                 $tagCount = count($this->findTokensForTag($tag));
136 136
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                         $this->getDocCommentPos(),
141 141
                         // We use an error code containing the tag name because we can't configure this rules from the
142 142
                         // outside and need  specific code to exclude the rule for this special tag.
143
-                        self::CODE_TAG_OCCURRENCE_MIN_PREFIX . ucfirst($tag),
143
+                        self::CODE_TAG_OCCURRENCE_MIN_PREFIX.ucfirst($tag),
144 144
                         [
145 145
                             $tag,
146 146
                             $minCount,
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         $allTags = $this->getAllTags();
165 165
 
166
-        return array_filter($allTags, function (array $tag) use ($tagName): bool {
166
+        return array_filter($allTags, function(array $tag) use ($tagName): bool {
167 167
             return substr($tag['content'], 1) === $tagName;
168 168
         });
169 169
     }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     {
208 208
         $processedTagRules = $this->getProcessedTagRules();
209 209
 
210
-        $processedTagRules = array_filter($processedTagRules, function (array $tagRule) use ($requiredRule): bool {
210
+        $processedTagRules = array_filter($processedTagRules, function(array $tagRule) use ($requiredRule): bool {
211 211
             return array_key_exists($requiredRule, $tagRule);
212 212
         });
213 213
         return $processedTagRules;
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
     {
247 247
         $processedTagRules = $this->getTagRules();
248 248
 
249
-        array_walk($processedTagRules, function (&$tagRule) {
250
-            $tagRule = array_map(function ($valueOrCallback) {
249
+        array_walk($processedTagRules, function(&$tagRule) {
250
+            $tagRule = array_map(function($valueOrCallback) {
251 251
                 return is_callable($valueOrCallback, true)
252 252
                     ? Closure::fromCallable($valueOrCallback)->call($this)
253 253
                     : $valueOrCallback;
Please login to merge, or discard this patch.
src/Standards/BestIt/Sniffs/DocTags/ParamTagSniff.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -173,13 +173,13 @@  discard block
 block discarded – undo
173 173
             $this->stackPos - 1
174 174
         );
175 175
 
176
-        $tagPosBeforeThis = array_filter($tagPosBeforeThis, function (int $position) {
176
+        $tagPosBeforeThis = array_filter($tagPosBeforeThis, function(int $position) {
177 177
             return $this->tokens[$position]['content'] === '@param';
178 178
         });
179 179
 
180 180
         $varOfThisTag = array_values($this->varTokens)[count($tagPosBeforeThis)];
181 181
 
182
-        return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>' . preg_quote($varOfThisTag['content'], '/') .
182
+        return '/(?P<type>[\w|\|\[\]]*) ?(?P<var>'.preg_quote($varOfThisTag['content'], '/').
183 183
             ') ?(?P<desc>.*)/m';
184 184
     }
185 185
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                 ->setToken($this->token);
201 201
         }
202 202
 
203
-        $this->varTokens = array_filter($this->tokens, function (array $token) use ($varPositions): bool {
203
+        $this->varTokens = array_filter($this->tokens, function(array $token) use ($varPositions): bool {
204 204
             return in_array($token['pointer'], $varPositions, true);
205 205
         });
206 206
 
Please login to merge, or discard this patch.
src/Standards/BestIt/Sniffs/DocTags/AuthorTagSniff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         // Satisfy php md
60 60
         unset($callback);
61 61
 
62
-        return $this->isValidContentInTrait($tagContent, function (array $matches): bool {
62
+        return $this->isValidContentInTrait($tagContent, function(array $matches): bool {
63 63
             return (bool) filter_var($matches['mail'], FILTER_VALIDATE_EMAIL);
64 64
         });
65 65
     }
Please login to merge, or discard this patch.