Passed
Branch master (6220de)
by BruceScrutinizer
04:32
created
php-cs-fixer/src/Fixer/Phpdoc/PhpdocAddMissingParamAnnotationFixer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
                 $type = $argument['type'] ?: 'mixed';
193 193
 
194 194
                 if ('?' !== $type[0] && 'null' === strtolower($argument['default'])) {
195
-                    $type = 'null|'.$type;
195
+                    $type = 'null|' . $type;
196 196
                 }
197 197
 
198 198
                 $newLines[] = new Line(sprintf(
Please login to merge, or discard this patch.
php-cs-fixer/src/Fixer/Phpdoc/PhpdocInlineTagNormalizerFixer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,18 +89,18 @@
 block discarded – undo
89 89
             $content = Preg::replaceCallback(
90 90
                 sprintf(
91 91
                     '#(?:@{+|{+\h*@)\h*(%s)s?([^}]*)(?:}+)#i',
92
-                    implode('|', array_map(function ($tag) {
92
+                    implode('|', array_map(function($tag) {
93 93
                         return preg_quote($tag, '/');
94 94
                     }, $this->configuration['tags']))
95 95
                 ),
96
-                function (array $matches) {
96
+                function(array $matches) {
97 97
                     $doc = trim($matches[2]);
98 98
 
99 99
                     if ('' === $doc) {
100
-                        return '{@'.$matches[1].'}';
100
+                        return '{@' . $matches[1] . '}';
101 101
                     }
102 102
 
103
-                    return '{@'.$matches[1].' '.$doc.'}';
103
+                    return '{@' . $matches[1] . ' ' . $doc . '}';
104 104
                 },
105 105
                 $token->getContent()
106 106
             );
Please login to merge, or discard this patch.
friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/GeneralPhpdocTagRenameFixer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 ->getOption(),
102 102
             (new FixerOptionBuilder('replacements', 'A map of tags to replace.'))
103 103
                 ->setAllowedTypes(['array'])
104
-                ->setNormalizer(function (Options $options, $value) {
104
+                ->setNormalizer(function(Options $options, $value) {
105 105
                     $normalizedValue = [];
106 106
 
107 107
                     foreach ($value as $from => $to) {
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
             $tokens[$index] = new Token([T_DOC_COMMENT, Preg::replaceCallback(
201 201
                 $regex,
202
-                function (array $matches) use ($caseInsensitive, $replacements) {
202
+                function(array $matches) use ($caseInsensitive, $replacements) {
203 203
                     if ($caseInsensitive) {
204 204
                         $matches[1] = strtolower($matches[1]);
205 205
                     }
Please login to merge, or discard this patch.
vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocSummaryFixer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
                 $content = rtrim($line->getContent());
83 83
 
84 84
                 if (!$this->isCorrectlyFormatted($content)) {
85
-                    $line->setContent($content.'.'.$this->whitespacesConfig->getLineEnding());
85
+                    $line->setContent($content . '.' . $this->whitespacesConfig->getLineEnding());
86 86
                     $tokens[$index] = new Token([T_DOC_COMMENT, $doc->getContent()]);
87 87
                 }
88 88
             }
Please login to merge, or discard this patch.
php-cs-fixer/src/Fixer/Phpdoc/PhpdocNoUselessInheritdocFixer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,8 +126,8 @@
 block discarded – undo
126 126
         $count = 0;
127 127
         $content = Preg::replaceCallback(
128 128
             '#(\h*(?:@{*|{*\h*@)\h*inheritdoc\h*)([^}]*)((?:}*)\h*)#i',
129
-            static function (array $matches) {
130
-                return ' '.$matches[2];
129
+            static function(array $matches) {
130
+                return ' ' . $matches[2];
131 131
             },
132 132
             $tokens[$tokenIndex]->getContent(),
133 133
             -1,
Please login to merge, or discard this patch.
vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocOrderFixer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         foreach ($others as $other) {
121 121
             if ($other->getStart() < $end) {
122 122
                 // we're doing this to maintain the original line indexes
123
-                $line->setContent($line->getContent().$other->getContent());
123
+                $line->setContent($line->getContent() . $other->getContent());
124 124
                 $other->remove();
125 125
             }
126 126
         }
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         foreach (array_reverse($others) as $other) {
157 157
             if ($other->getEnd() > $start) {
158 158
                 // we're doing this to maintain the original line indexes
159
-                $line->setContent($other->getContent().$line->getContent());
159
+                $line->setContent($other->getContent() . $line->getContent());
160 160
                 $other->remove();
161 161
             }
162 162
         }
Please login to merge, or discard this patch.
vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocAlignFixer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -101,24 +101,24 @@  discard block
 block discarded – undo
101 101
 
102 102
         // e.g. @param <hint> <$var>
103 103
         if ([] !== $tagsWithNameToAlign) {
104
-            $types[] = '(?P<tag>'.implode('|', $tagsWithNameToAlign).')\s+(?P<hint>(?:'.TypeExpression::REGEX_TYPES.')?)\s+(?P<var>(?:&|\.{3})?\$\S+)';
104
+            $types[] = '(?P<tag>' . implode('|', $tagsWithNameToAlign) . ')\s+(?P<hint>(?:' . TypeExpression::REGEX_TYPES . ')?)\s+(?P<var>(?:&|\.{3})?\$\S+)';
105 105
         }
106 106
 
107 107
         // e.g. @return <hint>
108 108
         if ([] !== $tagsWithoutNameToAlign) {
109
-            $types[] = '(?P<tag2>'.implode('|', $tagsWithoutNameToAlign).')\s+(?P<hint2>(?:'.TypeExpression::REGEX_TYPES.')?)';
109
+            $types[] = '(?P<tag2>' . implode('|', $tagsWithoutNameToAlign) . ')\s+(?P<hint2>(?:' . TypeExpression::REGEX_TYPES . ')?)';
110 110
         }
111 111
 
112 112
         // e.g. @method <hint> <signature>
113 113
         if ([] !== $tagsWithMethodSignatureToAlign) {
114
-            $types[] = '(?P<tag3>'.implode('|', $tagsWithMethodSignatureToAlign).')(\s+(?P<hint3>[^\s(]+)|)\s+(?P<signature>.+\))';
114
+            $types[] = '(?P<tag3>' . implode('|', $tagsWithMethodSignatureToAlign) . ')(\s+(?P<hint3>[^\s(]+)|)\s+(?P<signature>.+\))';
115 115
         }
116 116
 
117 117
         // optional <desc>
118 118
         $desc = '(?:\s+(?P<desc>\V*))';
119 119
 
120
-        $this->regex = '/^'.$indent.'\ \*\ @(?J)(?:'.implode('|', $types).')'.$desc.'\s*$/ux';
121
-        $this->regexCommentLine = '/^'.$indent.' \*(?! @)(?:\s+(?P<desc>\V+))(?<!\*\/)\r?$/u';
120
+        $this->regex = '/^' . $indent . '\ \*\ @(?J)(?:' . implode('|', $types) . ')' . $desc . '\s*$/ux';
121
+        $this->regexCommentLine = '/^' . $indent . ' \*(?! @)(?:\s+(?P<desc>\V+))(?<!\*\/)\r?$/u';
122 122
         $this->align = $this->configuration['align'];
123 123
     }
124 124
 
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
             foreach ($items as $j => $item) {
274 274
                 if (null === $item['tag']) {
275 275
                     if ('@' === $item['desc'][0]) {
276
-                        $docBlock->getLine($current + $j)->setContent($item['indent'].' * '.$item['desc'].$lineEnding);
276
+                        $docBlock->getLine($current + $j)->setContent($item['indent'] . ' * ' . $item['desc'] . $lineEnding);
277 277
 
278 278
                         continue;
279 279
                     }
@@ -318,12 +318,12 @@  discard block
 block discarded – undo
318 318
                         .$item['var']
319 319
                         .(
320 320
                             !empty($item['desc'])
321
-                            ? $this->getIndent($varMax - \strlen($item['var']) + 1).$item['desc'].$lineEnding
321
+                            ? $this->getIndent($varMax - \strlen($item['var']) + 1) . $item['desc'] . $lineEnding
322 322
                             : $lineEnding
323 323
                         )
324 324
                     ;
325 325
                 } elseif (!empty($item['desc'])) {
326
-                    $line .= $this->getIndent($hintMax - \strlen($item['hint']) + 1).$item['desc'].$lineEnding;
326
+                    $line .= $this->getIndent($hintMax - \strlen($item['hint']) + 1) . $item['desc'] . $lineEnding;
327 327
                 } else {
328 328
                     $line .= $lineEnding;
329 329
                 }
Please login to merge, or discard this patch.
friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/NoSuperfluousPhpdocTagsFixer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
         $shortNames = [];
123 123
         foreach ($namespaceUseAnalyzer->getDeclarationsFromTokens($tokens) as $namespaceUseAnalysis) {
124
-            $shortNames[strtolower($namespaceUseAnalysis->getShortName())] = '\\'.strtolower($namespaceUseAnalysis->getFullName());
124
+            $shortNames[strtolower($namespaceUseAnalysis->getShortName())] = '\\' . strtolower($namespaceUseAnalysis->getFullName());
125 125
         }
126 126
 
127 127
         foreach ($tokens as $index => $token) {
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
     private function toComparableNames(array $types, array $symbolShortNames): array
417 417
     {
418 418
         $normalized = array_map(
419
-            static function (string $type) use ($symbolShortNames) {
419
+            static function(string $type) use ($symbolShortNames) {
420 420
                 $type = strtolower($type);
421 421
 
422 422
                 if (isset($symbolShortNames[$type])) {
Please login to merge, or discard this patch.
friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocOrderByValueFixer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
                 ->setAllowedValues([
203 203
                     new AllowedValueSubset($allowedValues),
204 204
                 ])
205
-                ->setNormalizer(function (Options $options, $value) {
205
+                ->setNormalizer(function(Options $options, $value) {
206 206
                     $normalized = [];
207 207
 
208 208
                     foreach ($value as $index => $annotation) {
Please login to merge, or discard this patch.