@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | public function calculate(Metrics $metrics) |
11 | 11 | { |
12 | 12 | /* @var $packages PackageMetric[] */ |
13 | - $packages = array_filter($metrics->all(), function ($metric) { |
|
13 | + $packages = array_filter($metrics->all(), function($metric) { |
|
14 | 14 | return $metric instanceof PackageMetric; |
15 | 15 | }); |
16 | 16 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | // Set depending instabilities |
30 | 30 | foreach ($packages as $eachPackage) { |
31 | - $dependentInstabilities = array_map(function ($packageName) use ($instabilitiesByPackage) { |
|
31 | + $dependentInstabilities = array_map(function($packageName) use ($instabilitiesByPackage) { |
|
32 | 32 | //return $instabilitiesByPackage[$packageName] ?? null; |
33 | 33 | return isset($instabilitiesByPackage[$packageName]) ? $instabilitiesByPackage[$packageName] : null; |
34 | 34 | }, $eachPackage->getOutgoingPackageDependencies()); |
@@ -61,7 +61,7 @@ |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | // exclude extensions |
64 | - $packages = array_filter($packages, function ($package) { |
|
64 | + $packages = array_filter($packages, function($package) { |
|
65 | 65 | return !preg_match('!(^php$|^ext\-)!', $package->name); |
66 | 66 | }); |
67 | 67 |
@@ -121,7 +121,7 @@ |
||
121 | 121 | ]); |
122 | 122 | |
123 | 123 | if (!file_exists($suite->file) || !is_readable($suite->file)) { |
124 | - throw new \LogicException('Cannot find source file referenced in testsuite: ' . $suite->file); |
|
124 | + throw new \LogicException('Cannot find source file referenced in testsuite: '.$suite->file); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | $code = file_get_contents($suite->file); |