@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTestAsset; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTestAsset; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTestAsset; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTestAsset; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace RoaveTestAsset; |
| 5 | 5 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Roave\ApiCompare\Comparator\BackwardsCompatibility\ClassBased; |
| 6 | 6 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | $this->accessibleConstants($toClass) |
| 22 | 22 | ); |
| 23 | 23 | |
| 24 | - return Changes::fromArray(array_values(array_map(function (ReflectionClassConstant $constant) use ($fromClass) : Change { |
|
| 24 | + return Changes::fromArray(array_values(array_map(function(ReflectionClassConstant $constant) use ($fromClass) : Change { |
|
| 25 | 25 | return Change::removed( |
| 26 | 26 | sprintf('Constant %s::%s was removed', $fromClass->getName(), $constant->getName()), |
| 27 | 27 | true |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** @return ReflectionClassConstant[] */ |
| 33 | 33 | private function accessibleConstants(ReflectionClass $class) : array |
| 34 | 34 | { |
| 35 | - return array_filter($class->getReflectionConstants(), function (ReflectionClassConstant $constant) : bool { |
|
| 35 | + return array_filter($class->getReflectionConstants(), function(ReflectionClassConstant $constant) : bool { |
|
| 36 | 36 | return $constant->isPublic() || $constant->isProtected(); |
| 37 | 37 | }); |
| 38 | 38 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Roave\ApiCompare\Command; |
| 6 | 6 | |
@@ -111,15 +111,15 @@ discard block |
||
| 111 | 111 | $toPath = $this->git->checkout($sourceRepo, $toRevision); |
| 112 | 112 | |
| 113 | 113 | try { |
| 114 | - $fromSources = $fromPath . '/' . $sourcesPath; |
|
| 115 | - $toSources = $toPath . '/' . $sourcesPath; |
|
| 114 | + $fromSources = $fromPath.'/'.$sourcesPath; |
|
| 115 | + $toSources = $toPath.'/'.$sourcesPath; |
|
| 116 | 116 | |
| 117 | 117 | Assert::that($fromSources)->directory(); |
| 118 | 118 | Assert::that($toSources)->directory(); |
| 119 | 119 | |
| 120 | 120 | $changes = $this->comparator->compare( |
| 121 | - $this->reflectorFactory->__invoke((string) $fromPath . '/' . $sourcesPath), |
|
| 122 | - $this->reflectorFactory->__invoke((string) $toPath . '/' . $sourcesPath) |
|
| 121 | + $this->reflectorFactory->__invoke((string) $fromPath.'/'.$sourcesPath), |
|
| 122 | + $this->reflectorFactory->__invoke((string) $toPath.'/'.$sourcesPath) |
|
| 123 | 123 | ); |
| 124 | 124 | |
| 125 | 125 | (new SymfonyConsoleTextFormatter($output))->write($changes); |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Roave\ApiCompare; |
| 6 | 6 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | return $changelog; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - if ($newClass->isFinal() && ! $oldClass->isFinal()) { |
|
| 51 | + if ($newClass->isFinal() && !$oldClass->isFinal()) { |
|
| 52 | 52 | $changelog = $changelog->withAddedChange( |
| 53 | 53 | Change::changed(sprintf('Class %s is now final', $oldClass->getName()), true) |
| 54 | 54 | ); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | ReflectionMethod $newMethod |
| 110 | 110 | ) : Changes { |
| 111 | 111 | $newParameters = $newMethod->getParameters(); |
| 112 | - if (! array_key_exists($parameterPosition, $newParameters)) { |
|
| 112 | + if (!array_key_exists($parameterPosition, $newParameters)) { |
|
| 113 | 113 | return $changelog->withAddedChange( |
| 114 | 114 | Change::removed( |
| 115 | 115 | sprintf( |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Roave\ApiCompare\Git; |
| 6 | 6 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | public static function fromPath(string $path) : self |
| 19 | 19 | { |
| 20 | 20 | Assert::that($path)->directory(); |
| 21 | - Assert::that($path . '/.git')->directory(); |
|
| 21 | + Assert::that($path.'/.git')->directory(); |
|
| 22 | 22 | $instance = new self(); |
| 23 | 23 | $instance->path = $path; |
| 24 | 24 | return $instance; |