Completed
Pull Request — master (#34)
by Marco
02:42 queued 30s
created
src/Formatter/OutputFormatter.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.
src/Changes.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;
5 5
 
Please login to merge, or discard this patch.
src/Git/GitCheckoutRevisionToTemporaryPath.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 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
 
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function checkout(CheckedOutRepository $sourceRepository, Revision $revision) : CheckedOutRepository
15 15
     {
16
-        $checkoutDirectory = sys_get_temp_dir() . '/api-compare-' . (string)$revision;
16
+        $checkoutDirectory = sys_get_temp_dir().'/api-compare-'.(string) $revision;
17 17
 
18
-        (new Process(['git', 'clone', (string)$sourceRepository, $checkoutDirectory]))->mustRun();
19
-        (new Process(['git', 'checkout', (string)$revision]))->setWorkingDirectory($checkoutDirectory)->mustRun();
18
+        (new Process(['git', 'clone', (string) $sourceRepository, $checkoutDirectory]))->mustRun();
19
+        (new Process(['git', 'checkout', (string) $revision]))->setWorkingDirectory($checkoutDirectory)->mustRun();
20 20
 
21 21
         return CheckedOutRepository::fromPath($checkoutDirectory);
22 22
     }
@@ -27,6 +27,6 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function remove(CheckedOutRepository $checkedOutRepository) : void
29 29
     {
30
-        (new Process(['rm', '-rf', (string)$checkedOutRepository]))->mustRun();
30
+        (new Process(['rm', '-rf', (string) $checkedOutRepository]))->mustRun();
31 31
     }
32 32
 }
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,5 +1,5 @@  discard block
 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
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     public static function fromPath(string $path) : self
18 18
     {
19 19
         Assert::that($path)->directory();
20
-        Assert::that($path . '/.git')->directory();
20
+        Assert::that($path.'/.git')->directory();
21 21
         $instance = new self();
22 22
         $instance->path = $path;
23 23
         return $instance;
Please login to merge, or discard this patch.
src/Git/PerformCheckoutOfRevision.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/Change.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;
5 5
 
Please login to merge, or discard this patch.
test/unit/Git/GitCheckoutRevisionToTemporaryPathTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace RoaveTest\ApiCompare\Git;
5 5
 
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 {
16 16
     public function testCheckoutAndRemove() : void
17 17
     {
18
-        $sourceRepositoryPath = realpath(__DIR__ . '/../../../');
18
+        $sourceRepositoryPath = realpath(__DIR__.'/../../../');
19 19
 
20 20
         $git = new GitCheckoutRevisionToTemporaryPath();
21 21
 
Please login to merge, or discard this patch.
test/unit/Git/RevisionTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace RoaveTest\ApiCompare\Git;
5 5
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $sha1 = sha1(uniqid('sha1', true));
18 18
 
19
-        self::assertSame($sha1, (string)Revision::fromSha1($sha1));
19
+        self::assertSame($sha1, (string) Revision::fromSha1($sha1));
20 20
     }
21 21
 
22 22
     public function invalidRevisionProvider() : array
Please login to merge, or discard this patch.
test/unit/Git/CheckedOutRepositoryTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace RoaveTest\ApiCompare\Git;
5 5
 
@@ -13,14 +13,14 @@  discard block
 block discarded – undo
13 13
 {
14 14
     public function testFromPath() : void
15 15
     {
16
-        $path = sys_get_temp_dir() . '/' . uniqid('testPath', true);
16
+        $path = sys_get_temp_dir().'/'.uniqid('testPath', true);
17 17
         mkdir($path, 0777, true);
18
-        mkdir($path . '/.git');
18
+        mkdir($path.'/.git');
19 19
 
20 20
         $checkedOutRepository = CheckedOutRepository::fromPath($path);
21
-        self::assertSame($path, (string)$checkedOutRepository);
21
+        self::assertSame($path, (string) $checkedOutRepository);
22 22
 
23
-        rmdir($path . '/.git');
23
+        rmdir($path.'/.git');
24 24
         rmdir($path);
25 25
     }
26 26
 }
Please login to merge, or discard this patch.