Completed
Push — master ( d83206...aa4419 )
by Marco
10s
created
src/Git/Revision.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.
bin/api-compare.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 Roave\ApiCompareCli;
6 6
 
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
 use Symfony\Component\Console\Application;
10 10
 use function file_exists;
11 11
 
12
-(function () {
13
-    foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../autoload.php'] as $autoload) {
14
-        if (! file_exists($autoload)) {
12
+(function() {
13
+    foreach ([__DIR__.'/../vendor/autoload.php', __DIR__.'/../autoload.php'] as $autoload) {
14
+        if (!file_exists($autoload)) {
15 15
             continue;
16 16
         }
17 17
 
Please login to merge, or discard this patch.
src/Command/ApiCompare.php 1 patch
Spacing   +7 added lines, -7 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\Command;
5 5
 
@@ -108,22 +108,22 @@  discard block
 block discarded – undo
108 108
         $toRevision = $this->parseRevision->fromStringForRepository($input->getOption('to'), $sourceRepo);
109 109
         $sourcesPath = $input->getArgument('sources-path');
110 110
 
111
-        $output->writeln(sprintf('Comparing from %s to %s...', (string)$fromRevision, (string)$toRevision));
111
+        $output->writeln(sprintf('Comparing from %s to %s...', (string) $fromRevision, (string) $toRevision));
112 112
 
113 113
         $fromPath = $this->git->checkout($sourceRepo, $fromRevision);
114 114
         $toPath = $this->git->checkout($sourceRepo, $toRevision);
115 115
 
116 116
         try {
117
-            $fromSources = $fromPath . '/' . $sourcesPath;
118
-            $toSources   = $toPath . '/' . $sourcesPath;
117
+            $fromSources = $fromPath.'/'.$sourcesPath;
118
+            $toSources   = $toPath.'/'.$sourcesPath;
119 119
 
120 120
             Assert::that($fromSources)->directory();
121 121
             Assert::that($toSources)->directory();
122 122
 
123 123
             (new SymfonyConsoleTextFormatter($output))->write(
124 124
                 (new Comparator())->compare(
125
-                    $this->reflectorFactory->__invoke((string)$fromPath . '/' . $sourcesPath),
126
-                    $this->reflectorFactory->__invoke((string)$toPath . '/' . $sourcesPath)
125
+                    $this->reflectorFactory->__invoke((string) $fromPath.'/'.$sourcesPath),
126
+                    $this->reflectorFactory->__invoke((string) $toPath.'/'.$sourcesPath)
127 127
                 )
128 128
             );
129 129
         } finally {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     private function parseRevisionFromInput(InputInterface $input, CheckedOutRepository $repository) : Revision
142 142
     {
143 143
         return $this->parseRevision->fromStringForRepository(
144
-            (string)$input->getOption('from'),
144
+            (string) $input->getOption('from'),
145 145
             $repository
146 146
         );
147 147
     }
Please login to merge, or discard this patch.
src/Git/PickVersionFromVersionCollection.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/PickLastMinorVersionFromCollection.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/ParseRevision.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/GetVersionCollectionFromGitRepository.php 1 patch
Spacing   +3 added lines, -3 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,14 +17,14 @@  discard block
 block discarded – undo
17 17
     public function fromRepository(CheckedOutRepository $checkedOutRepository) : VersionsCollection
18 18
     {
19 19
         $output = (new Process(['git', 'tag', '-l']))
20
-            ->setWorkingDirectory((string)$checkedOutRepository)
20
+            ->setWorkingDirectory((string) $checkedOutRepository)
21 21
             ->mustRun()
22 22
             ->getOutput();
23 23
 
24 24
         // @todo handle invalid versions more gracefully (drop them)
25 25
         return VersionsCollection::fromArray(array_filter(
26 26
             explode("\n", $output),
27
-            function (string $maybeVersion) {
27
+            function(string $maybeVersion) {
28 28
                 return trim($maybeVersion) !== '';
29 29
             }
30 30
         ));
Please login to merge, or discard this patch.
src/Git/GitParseRevision.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
 
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     {
16 16
         return Revision::fromSha1(
17 17
             (new Process(['git', 'rev-parse', $something]))
18
-                ->setWorkingDirectory((string)$repository)
18
+                ->setWorkingDirectory((string) $repository)
19 19
                 ->mustRun()
20 20
                 ->getOutput()
21 21
         );
Please login to merge, or discard this patch.
src/Git/GetVersionCollection.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.