Passed
Pull Request — master (#38)
by Marco
02:19
created
unit/Comparator/BackwardsCompatibility/ClassBased/ConstantRemovedTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\ClassBased;
6 6
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
         self::assertSame(
31 31
             $expectedMessages,
32
-            array_map(function (Change $change) : string {
32
+            array_map(function(Change $change) : string {
33 33
                 return $change->__toString();
34 34
             }, iterator_to_array($changes))
35 35
         );
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
         return [
44 44
             'RoaveTestAsset\\ClassWithConstantsBeingRemoved' => [
45 45
                 (new ClassReflector(new SingleFileSourceLocator(
46
-                    __DIR__ . '/../../../../asset/api/old/ClassWithConstantsBeingRemoved.php',
46
+                    __DIR__.'/../../../../asset/api/old/ClassWithConstantsBeingRemoved.php',
47 47
                     $locator
48 48
                 )))->reflect('RoaveTestAsset\\ClassWithConstantsBeingRemoved'),
49 49
                 (new ClassReflector(new SingleFileSourceLocator(
50
-                    __DIR__ . '/../../../../asset/api/new/ClassWithConstantsBeingRemoved.php',
50
+                    __DIR__.'/../../../../asset/api/new/ClassWithConstantsBeingRemoved.php',
51 51
                     $locator
52 52
                 )))->reflect('RoaveTestAsset\\ClassWithConstantsBeingRemoved'),
53 53
                 [
Please login to merge, or discard this patch.
test/asset/api/new/ClassWithConstantsBeingRemoved.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace RoaveTestAsset;
5 5
 
Please login to merge, or discard this patch.
test/asset/api/old/ClassWithConstantsBeingRemoved.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace RoaveTestAsset;
5 5
 
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/ClassBased/ConstantRemoved.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Git/CheckedOutRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Git/GetVersionCollectionFromGitRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         // @todo handle invalid versions more gracefully (drop them)
32 32
         return VersionsCollection::fromArray(array_filter(
33 33
             explode("\n", $output),
34
-            function (string $maybeVersion) {
34
+            function(string $maybeVersion) {
35 35
                 return trim($maybeVersion) !== '';
36 36
             }
37 37
         ));
Please login to merge, or discard this patch.
src/Git/GitParseRevision.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Roave\ApiCompare\Git;
5 5
 
Please login to merge, or discard this patch.
src/Git/GitCheckoutRevisionToTemporaryPath.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function checkout(CheckedOutRepository $sourceRepository, Revision $revision) : CheckedOutRepository
18 18
     {
19
-        $checkoutDirectory = sys_get_temp_dir() . '/api-compare-' . (string) $revision;
19
+        $checkoutDirectory = sys_get_temp_dir().'/api-compare-'.(string) $revision;
20 20
 
21 21
         (new Process(['git', 'clone', (string) $sourceRepository, $checkoutDirectory]))->mustRun();
22 22
         (new Process(['git', 'checkout', (string) $revision]))->setWorkingDirectory($checkoutDirectory)->mustRun();
Please login to merge, or discard this patch.
src/Formatter/SymfonyConsoleTextFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Roave\ApiCompare\Formatter;
5 5
 
Please login to merge, or discard this patch.