Test Failed
Push — master ( 86d8f7...d5854d )
by Ashoka
03:24 queued 11s
created
src/Violation/Filter/PackageRequirementsFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         return array_reduce(
55 55
             array_map(
56
-                function (
56
+                function(
57 57
                     PackageInterface $package
58 58
                 ) use ($violation): ViolationInterface {
59 59
                     return new Violation(
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                     $this->locker
74 74
                 )
75 75
             ),
76
-            function (bool $carry, ViolationInterface $violation): bool {
76
+            function(bool $carry, ViolationInterface $violation): bool {
77 77
                 return $carry || $this->filter->__invoke($violation);
78 78
             },
79 79
             false
Please login to merge, or discard this patch.
src/Composer/Locker/PackageRequirementsResolver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
             $this->resolvedLockers->attach(
41 41
                 $locker,
42 42
                 array_map(
43
-                    function (array $packages) use ($lockedPackages) : array {
43
+                    function(array $packages) use ($lockedPackages) : array {
44 44
                         return array_reduce(
45 45
                             $lockedPackages,
46
-                            function (
46
+                            function(
47 47
                                 array $carry,
48 48
                                 PackageInterface $package
49 49
                             ) use ($packages) : array {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $graph = array_reduce(
96 96
             $packages,
97
-            function (array $carry, array $package): array {
97
+            function(array $carry, array $package): array {
98 98
                 foreach (array_keys($package['require'] ?? []) as $link) {
99 99
                     if (!preg_match('/^[^\/]+\/[^\/]+$/', $link)) {
100 100
                         // Most likely a platform requirement.
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                     // Determine grandparents by looking up the parents of the
131 131
                     // available dependents.
132 132
                     $dependents,
133
-                    function (array $carry, string $parent) use ($graph): array {
133
+                    function(array $carry, string $parent) use ($graph): array {
134 134
                         foreach ($graph[$parent] ?? [] as $grandparent) {
135 135
                             if (!in_array($grandparent, $carry, true)) {
136 136
                                 $carry[] = $grandparent;
Please login to merge, or discard this patch.