Passed
Branch master (6220de)
by BruceScrutinizer
04:32
created
src/Event/EventDispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $listeners = $this->listenerProvider->getListenersForEvent($event);
22 22
 
23 23
         array_map(
24
-            function (callable $listener) use ($event): void {
24
+            function(callable $listener) use ($event): void {
25 25
                 $listener($event);
26 26
             },
27 27
             $listeners
Please login to merge, or discard this patch.
src/Analyser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
         $resultsParser = new ResultAnalyser($this->collectedFactory);
33 33
 
34 34
         array_map(
35
-            fn ($currentParser) => $cumulativeParserResult->append($currentParser->parseFile($filePath)),
35
+            fn($currentParser) => $cumulativeParserResult->append($currentParser->parseFile($filePath)),
36 36
             $this->parserList
37 37
         );
38 38
 
39 39
         array_map(
40
-            fn ($currentParser) => $resultsParser->append($currentParser),
40
+            fn($currentParser) => $resultsParser->append($currentParser),
41 41
             iterator_to_array($cumulativeParserResult->getResultCollectionReadable(), true)
42 42
         );
43 43
 
Please login to merge, or discard this patch.
src/NamespaceProtectorProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@
 block discarded – undo
62 62
         $totalResult = new ResultAnalyser($this->collectedFactory);
63 63
 
64 64
         \array_map(
65
-            fn (PathInterface $file) => \array_map(
66
-                fn (ResultProcessedFileInterface $processedFile) => $totalResult->append($processedFile),
65
+            fn(PathInterface $file) => \array_map(
66
+                fn(ResultProcessedFileInterface $processedFile) => $totalResult->append($processedFile),
67 67
                 \iterator_to_array($analyser->execute($file)->getResultCollected()->getIterator())
68 68
             ),
69 69
             $filesToAnalyser->getFileLoaded()
Please login to merge, or discard this patch.
src/EnvironmentDataLoader.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
             /**
118 118
              * @param array-key $key
119 119
              * @param mixed $value
120
-            */
120
+             */
121 121
             function (string $key, $value) use ($db, $fetchStrategy) {
122 122
 
123 123
                 /** @var string $checkValue */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,12 +48,12 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function load(): void
50 50
     {
51
-        $fetchValue = function (string|int $key, string|int $value): string {
51
+        $fetchValue = function(string | int $key, string | int $value): string {
52 52
             return (string)$value;
53 53
         };
54 54
 
55 55
         /** @psalm-suppress MissingClosureParamType */
56
-        $fetchKey = function (string|int $key, $value): string {
56
+        $fetchKey = function(string | int $key, $value): string {
57 57
             return (string)$key;
58 58
         };
59 59
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         /** @psalm-suppress UnusedVariable */
66 66
         array_map(
67
-            function (string $class) use ($internalClass): void {
67
+            function(string $class) use ($internalClass): void {
68 68
                 $aClass = new ReflectionClass($class);
69 69
                 if ($aClass->isInternal()) {
70 70
                     $internalClass[$class] = $aClass->getName();
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
              * @param array-key $key
119 119
              * @param mixed $value
120 120
             */
121
-            function (string $key, $value) use ($db, $fetchStrategy) {
121
+            function(string $key, $value) use ($db, $fetchStrategy) {
122 122
 
123 123
                 /** @var string $checkValue */
124 124
                 $checkValue = $fetchStrategy($key, $value);
Please login to merge, or discard this patch.
php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Linter/ProcessLinter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function __sleep(): array
49 49
     {
50
-        throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
50
+        throw new \BadMethodCallException('Cannot serialize ' . __CLASS__);
51 51
     }
52 52
 
53 53
     /**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function __wakeup(): void
60 60
     {
61
-        throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
61
+        throw new \BadMethodCallException('Cannot unserialize ' . __CLASS__);
62 62
     }
63 63
 
64 64
     /**
Please login to merge, or discard this patch.
php-cs-fixer/src/Console/Report/ListSetsReport/ReporterFactory.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
                 $builtInReporters[] = sprintf(
42 42
                     '%s\\%s%s',
43 43
                     __NAMESPACE__,
44
-                    $relativeNamespace ? $relativeNamespace.'\\' : '',
44
+                    $relativeNamespace ? $relativeNamespace . '\\' : '',
45 45
                     $file->getBasename('.php')
46 46
                 );
47 47
             }
Please login to merge, or discard this patch.
tools/php-cs-fixer/vendor/symfony/finder/Iterator/PathFilterIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
      */
54 54
     protected function toRegex(string $str)
55 55
     {
56
-        return $this->isRegex($str) ? $str : '/'.preg_quote($str, '/').'/';
56
+        return $this->isRegex($str) ? $str : '/' . preg_quote($str, '/') . '/';
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
php-cs-fixer/vendor/composer/semver/src/Constraint/MatchAllConstraint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             return $this->prettyString;
55 55
         }
56 56
 
57
-        return (string) $this;
57
+        return (string)$this;
58 58
     }
59 59
 
60 60
     /**
Please login to merge, or discard this patch.