Completed
Push — master ( 5e388c...509209 )
by James
14s queued 11s
created
test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameInterfaceTest.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(static function (Change $change) : string {
36
+            array_map(static 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
-                static function (string $className, array $errors) use ($fromReflector, $toReflector) : array {
105
+                static 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.
test/unit/DetectChanges/BCBreak/ClassBased/PropertyChangedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $comparator
62 62
             ->expects(self::exactly(2))
63 63
             ->method('__invoke')
64
-            ->willReturnCallback(static function (ReflectionProperty $from, ReflectionProperty $to) : Changes {
64
+            ->willReturnCallback(static function(ReflectionProperty $from, ReflectionProperty $to) : Changes {
65 65
                 $propertyName = $from->getName();
66 66
 
67 67
                 self::assertSame($propertyName, $to->getName());
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/ClassBased/ConstantRemovedTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         self::assertSame(
33 33
             $expectedMessages,
34
-            array_map(static function (Change $change) : string {
34
+            array_map(static function(Change $change) : string {
35 35
                 return $change->__toString();
36 36
             }, iterator_to_array($changes))
37 37
         );
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
         return [
46 46
             'RoaveTestAsset\\ClassWithConstantsBeingRemoved' => [
47 47
                 (new ClassReflector(new SingleFileSourceLocator(
48
-                    __DIR__ . '/../../../../asset/api/old/ClassWithConstantsBeingRemoved.php',
48
+                    __DIR__.'/../../../../asset/api/old/ClassWithConstantsBeingRemoved.php',
49 49
                     $locator
50 50
                 )))->reflect('RoaveTestAsset\\ClassWithConstantsBeingRemoved'),
51 51
                 (new ClassReflector(new SingleFileSourceLocator(
52
-                    __DIR__ . '/../../../../asset/api/new/ClassWithConstantsBeingRemoved.php',
52
+                    __DIR__.'/../../../../asset/api/new/ClassWithConstantsBeingRemoved.php',
53 53
                     $locator
54 54
                 )))->reflect('RoaveTestAsset\\ClassWithConstantsBeingRemoved'),
55 55
                 [
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/ClassBased/MethodChangedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $comparator
63 63
             ->expects(self::exactly(3))
64 64
             ->method('__invoke')
65
-            ->willReturnCallback(static function (ReflectionMethod $from, ReflectionMethod $to) : Changes {
65
+            ->willReturnCallback(static function(ReflectionMethod $from, ReflectionMethod $to) : Changes {
66 66
                 $methodName = $from->getName();
67 67
 
68 68
                 self::assertSame(strtolower($methodName), strtolower($to->getName()));
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/ClassBased/ConstantChangedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $comparator
62 62
             ->expects(self::exactly(2))
63 63
             ->method('__invoke')
64
-            ->willReturnCallback(static function (ReflectionClassConstant $from, ReflectionClassConstant $to) : Changes {
64
+            ->willReturnCallback(static function(ReflectionClassConstant $from, ReflectionClassConstant $to) : Changes {
65 65
                 $propertyName = $from->getName();
66 66
 
67 67
                 self::assertSame($propertyName, $to->getName());
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/ClassBased/MethodRemovedTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         self::assertSame(
33 33
             $expectedMessages,
34
-            array_map(static function (Change $change) : string {
34
+            array_map(static function(Change $change) : string {
35 35
                 return $change->__toString();
36 36
             }, iterator_to_array($changes))
37 37
         );
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
         return [
46 46
             'RoaveTestAsset\\ClassWithMethodsBeingRemoved' => [
47 47
                 (new ClassReflector(new SingleFileSourceLocator(
48
-                    __DIR__ . '/../../../../asset/api/old/ClassWithMethodsBeingRemoved.php',
48
+                    __DIR__.'/../../../../asset/api/old/ClassWithMethodsBeingRemoved.php',
49 49
                     $locator
50 50
                 )))->reflect('RoaveTestAsset\\ClassWithMethodsBeingRemoved'),
51 51
                 (new ClassReflector(new SingleFileSourceLocator(
52
-                    __DIR__ . '/../../../../asset/api/new/ClassWithMethodsBeingRemoved.php',
52
+                    __DIR__.'/../../../../asset/api/new/ClassWithMethodsBeingRemoved.php',
53 53
                     $locator
54 54
                 )))->reflect('RoaveTestAsset\\ClassWithMethodsBeingRemoved'),
55 55
                 [
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/ClassBased/PropertyRemovedTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         self::assertSame(
33 33
             $expectedMessages,
34
-            array_map(static function (Change $change) : string {
34
+            array_map(static function(Change $change) : string {
35 35
                 return $change->__toString();
36 36
             }, iterator_to_array($changes))
37 37
         );
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
         return [
46 46
             'RoaveTestAsset\\ClassWithPropertiesBeingRemoved' => [
47 47
                 (new ClassReflector(new SingleFileSourceLocator(
48
-                    __DIR__ . '/../../../../asset/api/old/ClassWithPropertiesBeingRemoved.php',
48
+                    __DIR__.'/../../../../asset/api/old/ClassWithPropertiesBeingRemoved.php',
49 49
                     $locator
50 50
                 )))->reflect('RoaveTestAsset\\ClassWithPropertiesBeingRemoved'),
51 51
                 (new ClassReflector(new SingleFileSourceLocator(
52
-                    __DIR__ . '/../../../../asset/api/new/ClassWithPropertiesBeingRemoved.php',
52
+                    __DIR__.'/../../../../asset/api/new/ClassWithPropertiesBeingRemoved.php',
53 53
                     $locator
54 54
                 )))->reflect('RoaveTestAsset\\ClassWithPropertiesBeingRemoved'),
55 55
                 [
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/InterfaceBased/MethodAddedTest.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
         self::assertSame(
35 35
             $expectedMessages,
36
-            array_map(static function (Change $change) : string {
36
+            array_map(static function(Change $change) : string {
37 37
                 return $change->__toString();
38 38
             }, iterator_to_array($changes))
39 39
         );
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         return array_combine(
107 107
             array_keys($properties),
108 108
             array_map(
109
-                static function (string $className, array $errorMessages) use ($fromClassReflector, $toClassReflector
109
+                static function(string $className, array $errorMessages) use ($fromClassReflector, $toClassReflector
110 110
                 ) : array {
111 111
                     return [
112 112
                         $fromClassReflector->reflect($className),
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/InterfaceBased/AncestorRemovedTest.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(static function (Change $change) : string {
39
+            array_map(static function(Change $change) : string {
40 40
                 return $change->__toString();
41 41
             }, iterator_to_array($changes))
42 42
         );
@@ -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
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         return array_combine(
96 96
             array_keys($interfaces),
97 97
             array_map(
98
-                static function (string $interfaceName, array $errors) use ($fromReflector, $toReflector) : array {
98
+                static function(string $interfaceName, array $errors) use ($fromReflector, $toReflector) : array {
99 99
                     return [
100 100
                         $fromReflector->reflect($interfaceName),
101 101
                         $toReflector->reflect($interfaceName),
Please login to merge, or discard this patch.