@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | self::assertSame( |
| 37 | 37 | $expectedMessages, |
| 38 | - array_map(function (Change $change) : string { |
|
| 38 | + array_map(function(Change $change) : string { |
|
| 39 | 39 | return $change->__toString(); |
| 40 | 40 | }, iterator_to_array($changes)) |
| 41 | 41 | ); |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | array_combine( |
| 117 | 117 | array_keys($functions), |
| 118 | 118 | array_map( |
| 119 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
| 119 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
| 120 | 120 | return [ |
| 121 | 121 | $fromReflector->reflect($function), |
| 122 | 122 | $toReflector->reflect($function), |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | self::assertSame( |
| 37 | 37 | $expectedMessages, |
| 38 | - array_map(function (Change $change) : string { |
|
| 38 | + array_map(function(Change $change) : string { |
|
| 39 | 39 | return $change->__toString(); |
| 40 | 40 | }, iterator_to_array($changes)) |
| 41 | 41 | ); |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | array_combine( |
| 117 | 117 | array_keys($functions), |
| 118 | 118 | array_map( |
| 119 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
| 119 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
| 120 | 120 | return [ |
| 121 | 121 | $fromReflector->reflect($function), |
| 122 | 122 | $toReflector->reflect($function), |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | self::assertSame( |
| 37 | 37 | $expectedMessages, |
| 38 | - array_map(function (Change $change) : string { |
|
| 38 | + array_map(function(Change $change) : string { |
|
| 39 | 39 | return $change->__toString(); |
| 40 | 40 | }, iterator_to_array($changes)) |
| 41 | 41 | ); |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | array_combine( |
| 117 | 117 | array_keys($functions), |
| 118 | 118 | array_map( |
| 119 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
| 119 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
| 120 | 120 | return [ |
| 121 | 121 | $fromReflector->reflect($function), |
| 122 | 122 | $toReflector->reflect($function), |
@@ -33,7 +33,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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), |
@@ -33,7 +33,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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), |
@@ -36,7 +36,7 @@ discard block |
||
| 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 |
||
| 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), |
@@ -36,7 +36,7 @@ discard block |
||
| 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 |
||
| 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), |
@@ -36,7 +36,7 @@ discard block |
||
| 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 |
||
| 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), |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | public function setUp() : void |
| 76 | 76 | { |
| 77 | - $this->sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__ . '/../../../')); |
|
| 77 | + $this->sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__.'/../../../')); |
|
| 78 | 78 | chdir((string) $this->sourceRepository); |
| 79 | 79 | |
| 80 | 80 | $this->input = $this->createMock(InputInterface::class); |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | |
| 262 | 262 | $this->output->expects(self::any()) |
| 263 | 263 | ->method('writeln') |
| 264 | - ->willReturnCallback(function (string $output) use ($changeToExpect) : void { |
|
| 264 | + ->willReturnCallback(function(string $output) use ($changeToExpect) : void { |
|
| 265 | 265 | self::assertContains($changeToExpect, $output); |
| 266 | 266 | }); |
| 267 | 267 | } |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | |
| 309 | 309 | $this->getVersions->expects(self::once()) |
| 310 | 310 | ->method('fromRepository') |
| 311 | - ->with(self::callback(function (CheckedOutRepository $checkedOutRepository) : bool { |
|
| 311 | + ->with(self::callback(function(CheckedOutRepository $checkedOutRepository) : bool { |
|
| 312 | 312 | self::assertEquals($this->sourceRepository, $checkedOutRepository); |
| 313 | 313 | return true; |
| 314 | 314 | })) |