@@ -29,7 +29,7 @@ |
||
29 | 29 | |
30 | 30 | return array_reduce( |
31 | 31 | array_keys($commonProperties), |
32 | - function (Changes $accumulator, string $propertyName) use ($propertiesFrom, $propertiesTo) : Changes { |
|
32 | + function(Changes $accumulator, string $propertyName) use ($propertiesFrom, $propertiesTo) : Changes { |
|
33 | 33 | return $accumulator->mergeWith(($this->checkProperty)( |
34 | 34 | $propertiesFrom[$propertyName], |
35 | 35 | $propertiesTo[$propertyName] |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | return array_reduce( |
35 | 35 | array_keys($commonMethods), |
36 | - function (Changes $accumulator, string $methodName) use ($methodsFrom, $methodsTo) : Changes { |
|
36 | + function(Changes $accumulator, string $methodName) use ($methodsFrom, $methodsTo) : Changes { |
|
37 | 37 | return $accumulator->mergeWith(($this->checkMethod)( |
38 | 38 | $methodsFrom[$methodName], |
39 | 39 | $methodsTo[$methodName] |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $methods = $class->getMethods(); |
50 | 50 | |
51 | 51 | return array_combine( |
52 | - array_map(function (ReflectionMethod $method) : string { |
|
52 | + array_map(function(ReflectionMethod $method) : string { |
|
53 | 53 | return strtolower($method->getName()); |
54 | 54 | }, $methods), |
55 | 55 | $methods |
@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | return array_reduce( |
24 | 24 | $this->checks, |
25 | - function (Changes $changes, ClassConstantBased $check) use ($fromConstant, $toConstant) : Changes { |
|
25 | + function(Changes $changes, ClassConstantBased $check) use ($fromConstant, $toConstant) : Changes { |
|
26 | 26 | return $changes->mergeWith($check($fromConstant, $toConstant)); |
27 | 27 | }, |
28 | 28 | Changes::empty() |
@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | return array_reduce( |
24 | 24 | $this->checks, |
25 | - function (Changes $changes, FunctionBased $check) use ($fromFunction, $toClass) : Changes { |
|
25 | + function(Changes $changes, FunctionBased $check) use ($fromFunction, $toClass) : Changes { |
|
26 | 26 | return $changes->mergeWith($check($fromFunction, $toClass)); |
27 | 27 | }, |
28 | 28 | Changes::empty() |
@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | return array_reduce( |
24 | 24 | $this->checks, |
25 | - function (Changes $changes, TraitBased $check) use ($fromTrait, $toTrait) : Changes { |
|
25 | + function(Changes $changes, TraitBased $check) use ($fromTrait, $toTrait) : Changes { |
|
26 | 26 | return $changes->mergeWith($check($fromTrait, $toTrait)); |
27 | 27 | }, |
28 | 28 | Changes::empty() |
@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | return array_reduce( |
24 | 24 | $this->checks, |
25 | - function (Changes $changes, PropertyBased $check) use ($fromProperty, $toProperty) : Changes { |
|
25 | + function(Changes $changes, PropertyBased $check) use ($fromProperty, $toProperty) : Changes { |
|
26 | 26 | return $changes->mergeWith($check($fromProperty, $toProperty)); |
27 | 27 | }, |
28 | 28 | Changes::empty() |
@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | return array_reduce( |
24 | 24 | $this->checks, |
25 | - function (Changes $changes, MethodBased $check) use ($fromMethod, $toMethod) : Changes { |
|
25 | + function(Changes $changes, MethodBased $check) use ($fromMethod, $toMethod) : Changes { |
|
26 | 26 | return $changes->mergeWith($check($fromMethod, $toMethod)); |
27 | 27 | }, |
28 | 28 | Changes::empty() |