@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Roave\ApiCompare\Comparator\BackwardsCompatibility\ClassBased; |
6 | 6 | |
@@ -19,13 +19,13 @@ discard block |
||
19 | 19 | $fromValues = $this->accessibleConstantValues($fromClass); |
20 | 20 | $toValues = $this->accessibleConstantValues($toClass); |
21 | 21 | |
22 | - $changedConstants = array_keys(array_filter($fromValues, function ($constantValue, string $constantName) use ( |
|
22 | + $changedConstants = array_keys(array_filter($fromValues, function($constantValue, string $constantName) use ( |
|
23 | 23 | $toValues |
24 | 24 | ) : bool { |
25 | 25 | return array_key_exists($constantName, $toValues) && $constantValue !== $toValues[$constantName]; |
26 | 26 | }, \ARRAY_FILTER_USE_BOTH)); |
27 | 27 | |
28 | - return Changes::fromArray(array_map(function (string $constantName) use ($fromClass) : Change { |
|
28 | + return Changes::fromArray(array_map(function(string $constantName) use ($fromClass) : Change { |
|
29 | 29 | return Change::changed( |
30 | 30 | sprintf('Value of constant %s::%s changed', $fromClass->getName(), $constantName), |
31 | 31 | true |
@@ -38,12 +38,12 @@ discard block |
||
38 | 38 | { |
39 | 39 | $accessibleConstants = array_filter( |
40 | 40 | $class->getReflectionConstants(), |
41 | - function (ReflectionClassConstant $constant) : bool { |
|
41 | + function(ReflectionClassConstant $constant) : bool { |
|
42 | 42 | return $constant->isPublic() || $constant->isProtected(); |
43 | 43 | } |
44 | 44 | ); |
45 | 45 | |
46 | - return array_map(function (ReflectionClassConstant $constant) { |
|
46 | + return array_map(function(ReflectionClassConstant $constant) { |
|
47 | 47 | return $constant->getValue(); |
48 | 48 | }, $accessibleConstants); |
49 | 49 | } |