@@ -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 | })) |
@@ -31,9 +31,9 @@ discard block |
||
| 31 | 31 | use Symfony\Component\Console\Output\ConsoleOutput; |
| 32 | 32 | use function file_exists; |
| 33 | 33 | |
| 34 | -(function () : void { |
|
| 35 | - foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../autoload.php'] as $autoload) { |
|
| 36 | - if (! file_exists($autoload)) { |
|
| 34 | +(function() : void { |
|
| 35 | + foreach ([__DIR__.'/../vendor/autoload.php', __DIR__.'/../autoload.php'] as $autoload) { |
|
| 36 | + if (!file_exists($autoload)) { |
|
| 37 | 37 | continue; |
| 38 | 38 | } |
| 39 | 39 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | new GetVersionCollectionFromGitRepository(), |
| 55 | 55 | new PickLastMinorVersionFromCollection(), |
| 56 | 56 | new LocateDependenciesViaComposer( |
| 57 | - function (string $installationPath) use ($composerIo) : Installer { |
|
| 57 | + function(string $installationPath) use ($composerIo) : Installer { |
|
| 58 | 58 | return Installer::create( |
| 59 | 59 | $composerIo, |
| 60 | 60 | (new Factory())->createComposer( |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
| 19 | 19 | { |
| 20 | - if ($fromMethod->isAbstract() || ! $toMethod->isAbstract()) { |
|
| 20 | + if ($fromMethod->isAbstract() || !$toMethod->isAbstract()) { |
|
| 21 | 21 | return Changes::empty(); |
| 22 | 22 | } |
| 23 | 23 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
| 24 | 24 | { |
| 25 | - if (! $fromMethod->isProtected()) { |
|
| 25 | + if (!$fromMethod->isProtected()) { |
|
| 26 | 26 | return Changes::empty(); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -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->__invoke($fromMethod, $toMethod)); |
| 27 | 27 | }, |
| 28 | 28 | Changes::empty() |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
| 19 | 19 | { |
| 20 | - if ($fromMethod->isFinal() || ! $toMethod->isFinal()) { |
|
| 20 | + if ($fromMethod->isFinal() || !$toMethod->isFinal()) { |
|
| 21 | 21 | return Changes::empty(); |
| 22 | 22 | } |
| 23 | 23 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes |
| 24 | 24 | { |
| 25 | - if (! $fromMethod->isPublic()) { |
|
| 25 | + if (!$fromMethod->isPublic()) { |
|
| 26 | 26 | return Changes::empty(); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | public function __invoke(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes |
| 19 | 19 | { |
| 20 | - if (! $toClass->isTrait() || ! $fromClass->isInterface()) { |
|
| 20 | + if (!$toClass->isTrait() || !$fromClass->isInterface()) { |
|
| 21 | 21 | // checking whether an interface became an class is done in `InterfaceBecameClass` |
| 22 | 22 | return Changes::empty(); |
| 23 | 23 | } |
@@ -23,11 +23,11 @@ discard block |
||
| 23 | 23 | $toMethods = $this->methods($toInterface); |
| 24 | 24 | $newMethods = array_diff_key($toMethods, $fromMethods); |
| 25 | 25 | |
| 26 | - if (! $newMethods) { |
|
| 26 | + if (!$newMethods) { |
|
| 27 | 27 | return Changes::empty(); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - return Changes::fromList(...array_values(array_map(function (ReflectionMethod $method) use ( |
|
| 30 | + return Changes::fromList(...array_values(array_map(function(ReflectionMethod $method) use ( |
|
| 31 | 31 | $fromInterface |
| 32 | 32 | ) : Change { |
| 33 | 33 | return Change::added( |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $methods = $interface->getMethods(); |
| 48 | 48 | |
| 49 | 49 | return array_combine( |
| 50 | - array_map(function (ReflectionMethod $method) : string { |
|
| 50 | + array_map(function(ReflectionMethod $method) : string { |
|
| 51 | 51 | return strtolower($method->getName()); |
| 52 | 52 | }, $methods), |
| 53 | 53 | $methods |