Passed
Pull Request — master (#59)
by Michael
02:42
created
src/DetectChanges/BCBreak/ClassBased/PropertyChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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]
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/ClassBased/MethodChanged.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
DetectChanges/BCBreak/ClassConstantBased/MultipleChecksOnAClassConstant.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/FunctionBased/MultipleChecksOnAFunction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/TraitBased/MultipleChecksOnATrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/PropertyBased/MultipleChecksOnAProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/MethodBased/MultipleChecksOnAMethod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.