@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Roave\ApiCompare\Command; |
| 5 | 5 | |
@@ -117,21 +117,21 @@ discard block |
||
| 117 | 117 | $toRevision = $this->parseRevision->fromStringForRepository($input->getOption('to'), $sourceRepo); |
| 118 | 118 | $sourcesPath = $input->getArgument('sources-path'); |
| 119 | 119 | |
| 120 | - $output->writeln(sprintf('Comparing from %s to %s...', (string)$fromRevision, (string)$toRevision)); |
|
| 120 | + $output->writeln(sprintf('Comparing from %s to %s...', (string) $fromRevision, (string) $toRevision)); |
|
| 121 | 121 | |
| 122 | 122 | $fromPath = $this->git->checkout($sourceRepo, $fromRevision); |
| 123 | 123 | $toPath = $this->git->checkout($sourceRepo, $toRevision); |
| 124 | 124 | |
| 125 | 125 | try { |
| 126 | - $fromSources = $fromPath . '/' . $sourcesPath; |
|
| 127 | - $toSources = $toPath . '/' . $sourcesPath; |
|
| 126 | + $fromSources = $fromPath.'/'.$sourcesPath; |
|
| 127 | + $toSources = $toPath.'/'.$sourcesPath; |
|
| 128 | 128 | |
| 129 | 129 | Assert::that($fromSources)->directory(); |
| 130 | 130 | Assert::that($toSources)->directory(); |
| 131 | 131 | |
| 132 | 132 | $changes = $this->comparator->compare( |
| 133 | - $this->reflectorFactory->__invoke((string)$fromPath . '/' . $sourcesPath), |
|
| 134 | - $this->reflectorFactory->__invoke((string)$toPath . '/' . $sourcesPath) |
|
| 133 | + $this->reflectorFactory->__invoke((string) $fromPath.'/'.$sourcesPath), |
|
| 134 | + $this->reflectorFactory->__invoke((string) $toPath.'/'.$sourcesPath) |
|
| 135 | 135 | ); |
| 136 | 136 | |
| 137 | 137 | (new SymfonyConsoleTextFormatter($output))->write($changes); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | private function parseRevisionFromInput(InputInterface $input, CheckedOutRepository $repository) : Revision |
| 153 | 153 | { |
| 154 | 154 | return $this->parseRevision->fromStringForRepository( |
| 155 | - (string)$input->getOption('from'), |
|
| 155 | + (string) $input->getOption('from'), |
|
| 156 | 156 | $repository |
| 157 | 157 | ); |
| 158 | 158 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTest\ApiCompare\Command; |
| 5 | 5 | |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | public function setUp() : void |
| 58 | 58 | { |
| 59 | - $this->sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__ . '/../../../')); |
|
| 60 | - chdir((string)$this->sourceRepository); |
|
| 59 | + $this->sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__.'/../../../')); |
|
| 60 | + chdir((string) $this->sourceRepository); |
|
| 61 | 61 | |
| 62 | 62 | $this->input = $this->createMock(InputInterface::class); |
| 63 | 63 | $this->output = $this->createMock(OutputInterface::class); |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | $this->parseRevision->expects(self::at(0)) |
| 200 | 200 | ->method('fromStringForRepository') |
| 201 | - ->with((string)$pickedVersion) |
|
| 201 | + ->with((string) $pickedVersion) |
|
| 202 | 202 | ->willReturn(Revision::fromSha1($fromSha)); |
| 203 | 203 | $this->parseRevision->expects(self::at(1)) |
| 204 | 204 | ->method('fromStringForRepository') |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | |
| 208 | 208 | $this->getVersions->expects(self::once()) |
| 209 | 209 | ->method('fromRepository') |
| 210 | - ->with(self::callback(function (CheckedOutRepository $checkedOutRepository) : bool { |
|
| 210 | + ->with(self::callback(function(CheckedOutRepository $checkedOutRepository) : bool { |
|
| 211 | 211 | self::assertEquals($this->sourceRepository, $checkedOutRepository); |
| 212 | 212 | return true; |
| 213 | 213 | })) |