Passed
Branch master (6220de)
by BruceScrutinizer
04:03
created
doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 
318 318
         foreach ($class->getTraits() as $trait) {
319 319
             if (
320
-                ! $trait->hasMethod($method->getName())
320
+                !$trait->hasMethod($method->getName())
321 321
                 || $trait->getFileName() !== $method->getFileName()
322 322
             ) {
323 323
                 continue;
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         $traitImports = [];
343 343
 
344 344
         foreach ($class->getTraits() as $trait) {
345
-            if (! $trait->hasProperty($property->getName())) {
345
+            if (!$trait->hasProperty($property->getName())) {
346 346
                 continue;
347 347
             }
348 348
 
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         $annotations            = $this->preParser->parse($reflection->getDocComment(), $type . ' ' . $name);
367 367
 
368 368
         foreach ($annotations as $annotation) {
369
-            if (! ($annotation instanceof IgnoreAnnotation)) {
369
+            if (!($annotation instanceof IgnoreAnnotation)) {
370 370
                 continue;
371 371
             }
372 372
 
Please login to merge, or discard this patch.
vendor/friendsofphp/php-cs-fixer/src/AbstractDoctrineAnnotationFixer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         return new FixerConfigurationResolver([
80 80
             (new FixerOptionBuilder('ignored_tags', 'List of tags that must not be treated as Doctrine Annotations.'))
81 81
                 ->setAllowedTypes(['array'])
82
-                ->setAllowedValues([static function (array $values) {
82
+                ->setAllowedValues([static function(array $values) {
83 83
                     foreach ($values as $value) {
84 84
                         if (!\is_string($value)) {
85 85
                             return false;
Please login to merge, or discard this patch.
tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Preg.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             return $result;
42 42
         }
43 43
 
44
-        throw self::newPregException(preg_last_error(), __METHOD__, (array) $pattern);
44
+        throw self::newPregException(preg_last_error(), __METHOD__, (array)$pattern);
45 45
     }
46 46
 
47 47
     /**
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             return $result;
62 62
         }
63 63
 
64
-        throw self::newPregException(preg_last_error(), __METHOD__, (array) $pattern);
64
+        throw self::newPregException(preg_last_error(), __METHOD__, (array)$pattern);
65 65
     }
66 66
 
67 67
     /**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             return $result;
86 86
         }
87 87
 
88
-        throw self::newPregException(preg_last_error(), __METHOD__, (array) $pattern);
88
+        throw self::newPregException(preg_last_error(), __METHOD__, (array)$pattern);
89 89
     }
90 90
 
91 91
     /**
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             return $result;
109 109
         }
110 110
 
111
-        throw self::newPregException(preg_last_error(), __METHOD__, (array) $pattern);
111
+        throw self::newPregException(preg_last_error(), __METHOD__, (array)$pattern);
112 112
     }
113 113
 
114 114
     /**
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             return $result;
129 129
         }
130 130
 
131
-        throw self::newPregException(preg_last_error(), __METHOD__, (array) $pattern);
131
+        throw self::newPregException(preg_last_error(), __METHOD__, (array)$pattern);
132 132
     }
133 133
 
134 134
     /**
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             return array_map(__METHOD__, $pattern);
143 143
         }
144 144
 
145
-        return $pattern.'u';
145
+        return $pattern . 'u';
146 146
     }
147 147
 
148 148
     /**
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
         $endDelimiterPosition = strrpos($pattern, $delimiter);
166 166
 
167
-        return substr($pattern, 0, $endDelimiterPosition).str_replace('u', '', substr($pattern, $endDelimiterPosition));
167
+        return substr($pattern, 0, $endDelimiterPosition) . str_replace('u', '', substr($pattern, $endDelimiterPosition));
168 168
     }
169 169
 
170 170
     /**
Please login to merge, or discard this patch.
tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/FixerFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
             $builtInFixers = [];
90 90
 
91 91
             /** @var SplFileInfo $file */
92
-            foreach (SymfonyFinder::create()->files()->in(__DIR__.'/Fixer')->depth(1) as $file) {
92
+            foreach (SymfonyFinder::create()->files()->in(__DIR__ . '/Fixer')->depth(1) as $file) {
93 93
                 $relativeNamespace = $file->getRelativePath();
94
-                $fixerClass = 'PhpCsFixer\\Fixer\\'.($relativeNamespace ? $relativeNamespace.'\\' : '').$file->getBasename('.php');
94
+                $fixerClass = 'PhpCsFixer\\Fixer\\' . ($relativeNamespace ? $relativeNamespace . '\\' : '') . $file->getBasename('.php');
95 95
                 if ('Fixer' === substr($fixerClass, -5)) {
96 96
                     $builtInFixers[] = $fixerClass;
97 97
                 }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
             // filter mutual conflicts
226 226
             $report[$fixer] = array_filter(
227 227
                 $fixers,
228
-                static function (string $candidate) use ($report, $fixer) {
228
+                static function(string $candidate) use ($report, $fixer) {
229 229
                     return !\array_key_exists($candidate, $report) || !\in_array($fixer, $report[$candidate], true);
230 230
                 }
231 231
             );
Please login to merge, or discard this patch.
tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
                 $message = '@' === $name[0] ? 'Set must be enabled (true) or disabled (false). Other values are not allowed.' : 'Rule must be enabled (true), disabled (false) or configured (non-empty, assoc array). Other values are not allowed.';
52 52
 
53 53
                 if (null === $value) {
54
-                    $message .= ' To disable the '.('@' === $name[0] ? 'set' : 'rule').', use "FALSE" instead of "NULL".';
54
+                    $message .= ' To disable the ' . ('@' === $name[0] ? 'set' : 'rule') . ', use "FALSE" instead of "NULL".';
55 55
                 }
56 56
 
57 57
                 throw new InvalidFixerConfigurationException($name, $message);
Please login to merge, or discard this patch.
php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/RuleSet/RuleSets.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
         if (null === self::$setDefinitions) {
36 36
             self::$setDefinitions = [];
37 37
 
38
-            foreach (Finder::create()->files()->in(__DIR__.'/Sets') as $file) {
39
-                $class = 'PhpCsFixer\RuleSet\Sets\\'.$file->getBasename('.php');
38
+            foreach (Finder::create()->files()->in(__DIR__ . '/Sets') as $file) {
39
+                $class = 'PhpCsFixer\RuleSet\Sets\\' . $file->getBasename('.php');
40 40
                 $set = new $class();
41 41
 
42 42
                 self::$setDefinitions[$set->getName()] = $set;
Please login to merge, or discard this patch.
vendor/friendsofphp/php-cs-fixer/src/RuleSet/AbstractRuleSetDescription.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     {
28 28
         $name = substr(static::class, 1 + strrpos(static::class, '\\'), -3);
29 29
 
30
-        return '@'.str_replace('Risky', ':risky', $name);
30
+        return '@' . str_replace('Risky', ':risky', $name);
31 31
     }
32 32
 
33 33
     public function isRisky(): bool
Please login to merge, or discard this patch.
php-cs-fixer/src/FixerConfiguration/FixerConfigurationResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             if (null !== $allowedValues) {
92 92
                 foreach ($allowedValues as &$allowedValue) {
93 93
                     if (\is_object($allowedValue) && \is_callable($allowedValue)) {
94
-                        $allowedValue = static function (/* mixed */ $values) use ($allowedValue) {
94
+                        $allowedValue = static function(/* mixed */ $values) use ($allowedValue) {
95 95
                             return $allowedValue($values);
96 96
                         };
97 97
                     }
Please login to merge, or discard this patch.
vendor/friendsofphp/php-cs-fixer/src/Tokenizer/TokensAnalyzer.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -522,40 +522,40 @@
 block discarded – undo
522 522
         static $arrayOperators;
523 523
         if (null === $arrayOperators) {
524 524
             $arrayOperators = [
525
-                T_AND_EQUAL => true,            // &=
526
-                T_BOOLEAN_AND => true,          // &&
527
-                T_BOOLEAN_OR => true,           // ||
528
-                T_CONCAT_EQUAL => true,         // .=
529
-                T_DIV_EQUAL => true,            // /=
530
-                T_DOUBLE_ARROW => true,         // =>
531
-                T_IS_EQUAL => true,             // ==
532
-                T_IS_GREATER_OR_EQUAL => true,  // >=
533
-                T_IS_IDENTICAL => true,         // ===
534
-                T_IS_NOT_EQUAL => true,         // !=, <>
535
-                T_IS_NOT_IDENTICAL => true,     // !==
536
-                T_IS_SMALLER_OR_EQUAL => true,  // <=
537
-                T_LOGICAL_AND => true,          // and
538
-                T_LOGICAL_OR => true,           // or
539
-                T_LOGICAL_XOR => true,          // xor
540
-                T_MINUS_EQUAL => true,          // -=
541
-                T_MOD_EQUAL => true,            // %=
542
-                T_MUL_EQUAL => true,            // *=
543
-                T_OR_EQUAL => true,             // |=
544
-                T_PLUS_EQUAL => true,           // +=
545
-                T_POW => true,                  // **
546
-                T_POW_EQUAL => true,            // **=
547
-                T_SL => true,                   // <<
548
-                T_SL_EQUAL => true,             // <<=
549
-                T_SR => true,                   // >>
550
-                T_SR_EQUAL => true,             // >>=
551
-                T_XOR_EQUAL => true,            // ^=
552
-                T_SPACESHIP => true,            // <=>
553
-                T_COALESCE => true,             // ??
525
+                T_AND_EQUAL => true, // &=
526
+                T_BOOLEAN_AND => true, // &&
527
+                T_BOOLEAN_OR => true, // ||
528
+                T_CONCAT_EQUAL => true, // .=
529
+                T_DIV_EQUAL => true, // /=
530
+                T_DOUBLE_ARROW => true, // =>
531
+                T_IS_EQUAL => true, // ==
532
+                T_IS_GREATER_OR_EQUAL => true, // >=
533
+                T_IS_IDENTICAL => true, // ===
534
+                T_IS_NOT_EQUAL => true, // !=, <>
535
+                T_IS_NOT_IDENTICAL => true, // !==
536
+                T_IS_SMALLER_OR_EQUAL => true, // <=
537
+                T_LOGICAL_AND => true, // and
538
+                T_LOGICAL_OR => true, // or
539
+                T_LOGICAL_XOR => true, // xor
540
+                T_MINUS_EQUAL => true, // -=
541
+                T_MOD_EQUAL => true, // %=
542
+                T_MUL_EQUAL => true, // *=
543
+                T_OR_EQUAL => true, // |=
544
+                T_PLUS_EQUAL => true, // +=
545
+                T_POW => true, // **
546
+                T_POW_EQUAL => true, // **=
547
+                T_SL => true, // <<
548
+                T_SL_EQUAL => true, // <<=
549
+                T_SR => true, // >>
550
+                T_SR_EQUAL => true, // >>=
551
+                T_XOR_EQUAL => true, // ^=
552
+                T_SPACESHIP => true, // <=>
553
+                T_COALESCE => true, // ??
554 554
             ];
555 555
 
556 556
             // @TODO: drop condition when PHP 7.4+ is required
557 557
             if (\defined('T_COALESCE_EQUAL')) {
558
-                $arrayOperators[T_COALESCE_EQUAL] = true;  // ??=
558
+                $arrayOperators[T_COALESCE_EQUAL] = true; // ??=
559 559
             }
560 560
         }
561 561
 
Please login to merge, or discard this patch.