Test Failed
Push — master ( 86d8f7...d5854d )
by Ashoka
03:24 queued 11s
created
src/Violation/Filter/DependencyFilter.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
         return array_reduce(
49 49
             array_map(
50
-                function (
50
+                function(
51 51
                     array $dependent
52 52
                 ) use ($violation): ViolationInterface {
53 53
                     /** @var PackageInterface $package */
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                     $violation->getPackage()->getName()
70 70
                 )
71 71
             ),
72
-            function (bool $carry, ViolationInterface $violation): bool {
72
+            function(bool $carry, ViolationInterface $violation): bool {
73 73
                 return $carry || $this->filter->__invoke($violation);
74 74
             },
75 75
             false
Please login to merge, or discard this patch.
src/Violation/Filter/ViolationFilterFactory.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
     private function getSuggestsFilters(Composer $composer): array
48 48
     {
49 49
         return array_map(
50
-            function (string $package) : ViolationFilterInterface {
50
+            function(string $package) : ViolationFilterInterface {
51 51
                 return new ExactPackageFilter($package);
52 52
             },
53 53
             array_keys(
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $extra = $composer->getPackage()->getExtra();
69 69
 
70 70
         return array_map(
71
-            function (string $rule) : ViolationFilterInterface {
71
+            function(string $rule) : ViolationFilterInterface {
72 72
                 $filters = [
73 73
                     new ExactPackageFilter($rule),
74 74
                     new PatternPackageFilter($rule)
Please login to merge, or discard this patch.
src/Violation/Finder/ViolationFinder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,14 +72,14 @@  discard block
 block discarded – undo
72 72
         $lock       = $composer->getLocker()->getLockData();
73 73
 
74 74
         $lockedPackages = array_map(
75
-            function (array $package) : string {
75
+            function(array $package) : string {
76 76
                 return $package['name'];
77 77
             },
78 78
             $lock['packages'] ?? []
79 79
         );
80 80
 
81 81
         $lockedDevPackages = array_map(
82
-            function (array $package) : string {
82
+            function(array $package) : string {
83 83
                 return $package['name'];
84 84
             },
85 85
             $lock['packages-dev'] ?? []
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $installed    = [];
134 134
         $requirements = array_keys($package->getRequires());
135 135
         $packages     = array_map(
136
-            function (CandidateInterface $candidate) : string {
136
+            function(CandidateInterface $candidate) : string {
137 137
                 return $candidate->getPackage()->getName();
138 138
             },
139 139
             $candidates
Please login to merge, or discard this patch.
src/Php/Filter/SymbolFilterFactory.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
     {
22 22
         /** @var SymbolFilterInterface[] $filters */
23 23
         $filters = array_map(
24
-            function (string $exclusion) : SymbolFilterInterface {
24
+            function(string $exclusion) : SymbolFilterInterface {
25 25
                 $filters = [
26 26
                     new ExactSymbolFilter($exclusion),
27 27
                     new PatternSymbolFilter($exclusion)
Please login to merge, or discard this patch.
src/Composer/Command/DependencyGuardCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
                 . implode(
64 64
                     ', ',
65 65
                     array_map(
66
-                        function (string $format) : string {
66
+                        function(string $format) : string {
67 67
                             return sprintf('<comment>%s</comment>', $format);
68 68
                         },
69 69
                         $this->exporterFactory->getOutputFormats()
Please login to merge, or discard this patch.
src/Composer/Command/Exporter/TextViolationExporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
             $this->prompt->listing(
51 51
                 array_map(
52
-                    function (
52
+                    function(
53 53
                         SymbolInterface $symbol
54 54
                     ) use (
55 55
                         $root
Please login to merge, or discard this patch.
bin/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     [
10 10
         __DIR__ . '/../vendor/autoload.php',
11 11
     ],
12
-    function (?string $carry, string $file): ?string {
12
+    function(?string $carry, string $file): ?string {
13 13
         return file_exists($file)
14 14
             ? $file
15 15
             : $carry;
Please login to merge, or discard this patch.
src/Php/SymbolTracker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             new \RecursiveIteratorIterator(
77 77
                 new \RecursiveArrayIterator($this->symbols, \RecursiveArrayIterator::CHILD_ARRAYS_ONLY)
78 78
             ),
79
-            function ($each): bool {
79
+            function($each): bool {
80 80
                 return $each !== false;
81 81
             }
82 82
         );
Please login to merge, or discard this patch.
src/Php/SymbolExtractor.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
             try {
52 52
                 $size     = $file->getSize();
53 53
                 $handle   = $file->openFile('rb');
54
-                $contents = $size  > 0 ? $handle->fread($size) : '';
54
+                $contents = $size > 0 ? $handle->fread($size) : '';
55 55
 
56 56
                 if (empty($contents)) {
57 57
                     continue;
Please login to merge, or discard this patch.