@@ -47,7 +47,7 @@ discard block |
||
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 |
||
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 |
@@ -47,7 +47,7 @@ discard block |
||
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 |
||
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) |
@@ -72,14 +72,14 @@ discard block |
||
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 |
||
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 |
@@ -21,7 +21,7 @@ |
||
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) |
@@ -63,7 +63,7 @@ |
||
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() |
@@ -49,7 +49,7 @@ |
||
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 |
@@ -9,7 +9,7 @@ |
||
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; |
@@ -76,7 +76,7 @@ |
||
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 | ); |
@@ -51,7 +51,7 @@ |
||
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; |