Passed
Pull Request — master (#38)
by Marco
02:40
created
BackwardsCompatibility/InterfaceBased/InterfaceBecameTraitTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
         self::assertSame(
35 35
             $expectedMessages,
36
-            array_map(function (Change $change) : string {
36
+            array_map(function(Change $change) : string {
37 37
                 return $change->__toString();
38 38
             }, iterator_to_array($changes))
39 39
         );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             ,
64 64
             $locator
65 65
         ));
66
-        $toReflector   = new ClassReflector(new StringSourceLocator(
66
+        $toReflector = new ClassReflector(new StringSourceLocator(
67 67
             <<<'PHP'
68 68
 <?php
69 69
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         return array_combine(
103 103
             array_keys($classes),
104 104
             array_map(
105
-                function (string $className, array $errors) use ($fromReflector, $toReflector) : array {
105
+                function(string $className, array $errors) use ($fromReflector, $toReflector) : array {
106 106
                     return [
107 107
                         $fromReflector->reflect($className),
108 108
                         $toReflector->reflect($className),
Please login to merge, or discard this patch.
unit/Comparator/BackwardsCompatibility/TraitBased/TraitBecameClassTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         self::assertSame(
38 38
             $expectedMessages,
39
-            array_map(function (Change $change) : string {
39
+            array_map(function(Change $change) : string {
40 40
                 return $change->__toString();
41 41
             }, iterator_to_array($changes))
42 42
         );
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             ,
62 62
             $locator
63 63
         ));
64
-        $toReflector   = new ClassReflector(new StringSourceLocator(
64
+        $toReflector = new ClassReflector(new StringSourceLocator(
65 65
             <<<'PHP'
66 66
 <?php
67 67
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         return array_combine(
91 91
             array_keys($classes),
92 92
             array_map(
93
-                function (string $className, array $errors) use ($fromReflector, $toReflector) : array {
93
+                function(string $className, array $errors) use ($fromReflector, $toReflector) : array {
94 94
                     return [
95 95
                         $fromReflector->reflect($className),
96 96
                         $toReflector->reflect($className),
Please login to merge, or discard this patch.
Comparator/BackwardsCompatibility/TraitBased/TraitBecameInterfaceTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         self::assertSame(
38 38
             $expectedMessages,
39
-            array_map(function (Change $change) : string {
39
+            array_map(function(Change $change) : string {
40 40
                 return $change->__toString();
41 41
             }, iterator_to_array($changes))
42 42
         );
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             ,
62 62
             $locator
63 63
         ));
64
-        $toReflector   = new ClassReflector(new StringSourceLocator(
64
+        $toReflector = new ClassReflector(new StringSourceLocator(
65 65
             <<<'PHP'
66 66
 <?php
67 67
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         return array_combine(
91 91
             array_keys($classes),
92 92
             array_map(
93
-                function (string $className, array $errors) use ($fromReflector, $toReflector) : array {
93
+                function(string $className, array $errors) use ($fromReflector, $toReflector) : array {
94 94
                     return [
95 95
                         $fromReflector->reflect($className),
96 96
                         $toReflector->reflect($className),
Please login to merge, or discard this patch.
BackwardsCompatibility/PropertyBased/PropertyDefaultValueChangedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         self::assertSame(
38 38
             $expectedMessages,
39
-            array_map(function (Change $change) : string {
39
+            array_map(function(Change $change) : string {
40 40
                 return $change->__toString();
41 41
             }, iterator_to_array($changes))
42 42
         );
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         return array_combine(
139 139
             array_keys($properties),
140 140
             array_map(
141
-                function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
141
+                function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
142 142
                     return [
143 143
                         $fromClass->getProperty($property),
144 144
                         $toClass->getProperty($property),
Please login to merge, or discard this patch.
BackwardsCompatibility/PropertyBased/PropertyVisibilityReducedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         self::assertSame(
38 38
             $expectedMessages,
39
-            array_map(function (Change $change) : string {
39
+            array_map(function(Change $change) : string {
40 40
                 return $change->__toString();
41 41
             }, iterator_to_array($changes))
42 42
         );
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         return array_combine(
109 109
             array_keys($properties),
110 110
             array_map(
111
-                function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
111
+                function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
112 112
                     return [
113 113
                         $fromClass->getProperty($property),
114 114
                         $toClass->getProperty($property),
Please login to merge, or discard this patch.
BackwardsCompatibility/PropertyBased/PropertyDocumentedTypeChangedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         self::assertSame(
38 38
             $expectedMessages,
39
-            array_map(function (Change $change) : string {
39
+            array_map(function(Change $change) : string {
40 40
                 return $change->__toString();
41 41
             }, iterator_to_array($changes))
42 42
         );
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         return array_combine(
176 176
             array_keys($properties),
177 177
             array_map(
178
-                function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
178
+                function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
179 179
                     return [
180 180
                         $fromClass->getProperty($property),
181 181
                         $toClass->getProperty($property),
Please login to merge, or discard this patch.
BackwardsCompatibility/PropertyBased/PropertyScopeChangedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         self::assertSame(
38 38
             $expectedMessages,
39
-            array_map(function (Change $change) : string {
39
+            array_map(function(Change $change) : string {
40 40
                 return $change->__toString();
41 41
             }, iterator_to_array($changes))
42 42
         );
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         return array_combine(
123 123
             array_keys($properties),
124 124
             array_map(
125
-                function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
125
+                function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
126 126
                     return [
127 127
                         $fromClass->getProperty($property),
128 128
                         $toClass->getProperty($property),
Please login to merge, or discard this patch.
unit/Comparator/BackwardsCompatibility/ClassBased/PropertyChangedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $comparator
61 61
             ->expects(self::exactly(2))
62 62
             ->method('compare')
63
-            ->willReturnCallback(function (ReflectionProperty $from, ReflectionProperty $to) : Changes {
63
+            ->willReturnCallback(function(ReflectionProperty $from, ReflectionProperty $to) : Changes {
64 64
                 $propertyName = $from->getName();
65 65
 
66 66
                 self::assertSame($propertyName, $to->getName());
Please login to merge, or discard this patch.
unit/Comparator/BackwardsCompatibility/ClassBased/ConstantChangedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $comparator
61 61
             ->expects(self::exactly(2))
62 62
             ->method('compare')
63
-            ->willReturnCallback(function (ReflectionClassConstant $from, ReflectionClassConstant $to) : Changes {
63
+            ->willReturnCallback(function(ReflectionClassConstant $from, ReflectionClassConstant $to) : Changes {
64 64
                 $propertyName = $from->getName();
65 65
 
66 66
                 self::assertSame($propertyName, $to->getName());
Please login to merge, or discard this patch.