Completed
Push — master ( ba85a6...34f627 )
by Marco
12s queued 10s
created
src/LocateDependencies/LocateDependenciesViaComposer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
     public function __invoke(string $installationPath) : SourceLocator
45 45
     {
46 46
         Assert::that($installationPath)->directory();
47
-        Assert::that($installationPath . '/composer.json')->file();
47
+        Assert::that($installationPath.'/composer.json')->file();
48 48
 
49
-        $this->runInDirectory(function () use ($installationPath) : void {
49
+        $this->runInDirectory(function() use ($installationPath) : void {
50 50
             $installer = ($this->makeComposerInstaller)($installationPath);
51 51
 
52 52
             Assert::that($installer)->isInstanceOf(Installer::class);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             $installer->run();
64 64
         }, $installationPath);
65 65
 
66
-        $autoloadStatic = $installationPath . '/vendor/composer/autoload_static.php';
66
+        $autoloadStatic = $installationPath.'/vendor/composer/autoload_static.php';
67 67
 
68 68
         Assert::that($autoloadStatic)->file();
69 69
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     {
107 107
         $filesMapProperty = $autoloadStatic->getProperty('files');
108 108
 
109
-        if (! $filesMapProperty) {
109
+        if (!$filesMapProperty) {
110 110
             return new AggregateSourceLocator();
111 111
         }
112 112
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
               ->file();
122 122
 
123 123
         return new AggregateSourceLocator(array_values(array_map(
124
-            function (string $path) : SourceLocator {
124
+            function(string $path) : SourceLocator {
125 125
                 $realPath = realpath($path);
126 126
 
127 127
                 Assert::that($realPath)->string();
Please login to merge, or discard this patch.
test/unit/Command/AssertBackwardsCompatibleTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     public function setUp() : void
77 77
     {
78
-        $repositoryPath = realpath(__DIR__ . '/../../../');
78
+        $repositoryPath = realpath(__DIR__.'/../../../');
79 79
 
80 80
         self::assertInternalType('string', $repositoryPath);
81 81
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 
275 275
         $this->output->expects(self::any())
276 276
             ->method('writeln')
277
-            ->willReturnCallback(function (string $output) use ($changeToExpect) : void {
277
+            ->willReturnCallback(function(string $output) use ($changeToExpect) : void {
278 278
                 self::assertContains($changeToExpect, $output);
279 279
             });
280 280
     }
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
 
359 359
         $this->getVersions->expects(self::once())
360 360
             ->method('fromRepository')
361
-            ->with(self::callback(function (CheckedOutRepository $checkedOutRepository) : bool {
361
+            ->with(self::callback(function(CheckedOutRepository $checkedOutRepository) : bool {
362 362
                 self::assertEquals($this->sourceRepository, $checkedOutRepository);
363 363
                 return true;
364 364
             }))
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
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     public function testExceptionIsThrownWhenTwoPathsCollide() : void
49 49
     {
50
-        $git              = new GitCheckoutRevisionToTemporaryPath(function () : string {
50
+        $git              = new GitCheckoutRevisionToTemporaryPath(function() : string {
51 51
             return 'foo';
52 52
         });
53 53
         $sourceRepository = $this->sourceRepository();
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     private function sourceRepository() : CheckedOutRepository
77 77
     {
78
-        $repositoryPath = realpath(__DIR__ . '/../../..');
78
+        $repositoryPath = realpath(__DIR__.'/../../..');
79 79
 
80 80
         self::assertInternalType('string', $repositoryPath);
81 81
 
Please login to merge, or discard this patch.
test/unit/LocateDependencies/LocateDependenciesViaComposerTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $this->originalCwd       = $originalCwd;
54 54
         $this->composerInstaller = $this->createMock(Installer::class);
55 55
         $this->astLocator        = (new BetterReflection())->astLocator();
56
-        $this->makeInstaller     = function (string $installationPath) : Installer {
56
+        $this->makeInstaller     = function(string $installationPath) : Installer {
57 57
             self::assertSame($this->expectedInstallatonPath, $installationPath);
58 58
 
59 59
             return $this->composerInstaller;
@@ -102,13 +102,13 @@  discard block
 block discarded – undo
102 102
 
103 103
     public function testWillLocateDependencies() : void
104 104
     {
105
-        $this->expectedInstallatonPath = $this->realpath(__DIR__ . '/../../asset/composer-installation-structure');
105
+        $this->expectedInstallatonPath = $this->realpath(__DIR__.'/../../asset/composer-installation-structure');
106 106
 
107 107
         $this
108 108
             ->composerInstaller
109 109
             ->expects(self::once())
110 110
             ->method('run')
111
-            ->willReturnCallback(function () : void {
111
+            ->willReturnCallback(function() : void {
112 112
                 self::assertSame($this->expectedInstallatonPath, getcwd());
113 113
             });
114 114
 
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
         self::assertEquals(
129 129
             new StaticClassMapSourceLocator(
130 130
                 [
131
-                    'A\\ClassName' => $this->realpath(__DIR__ . '/../../asset/composer-installation-structure/AClassName.php'),
132
-                    'B\\ClassName' => $this->realpath(__DIR__ . '/../../asset/composer-installation-structure/BClassName.php'),
131
+                    'A\\ClassName' => $this->realpath(__DIR__.'/../../asset/composer-installation-structure/AClassName.php'),
132
+                    'B\\ClassName' => $this->realpath(__DIR__.'/../../asset/composer-installation-structure/BClassName.php'),
133 133
                 ],
134 134
                 $this->astLocator
135 135
             ),
@@ -138,11 +138,11 @@  discard block
 block discarded – undo
138 138
         self::assertEquals(
139 139
             new AggregateSourceLocator([
140 140
                 new SingleFileSourceLocator(
141
-                    $this->realpath(__DIR__ . '/../../asset/composer-installation-structure/included-file-1.php'),
141
+                    $this->realpath(__DIR__.'/../../asset/composer-installation-structure/included-file-1.php'),
142 142
                     $this->astLocator
143 143
                 ),
144 144
                 new SingleFileSourceLocator(
145
-                    $this->realpath(__DIR__ . '/../../asset/composer-installation-structure/included-file-2.php'),
145
+                    $this->realpath(__DIR__.'/../../asset/composer-installation-structure/included-file-2.php'),
146 146
                     $this->astLocator
147 147
                 ),
148 148
             ]),
@@ -154,13 +154,13 @@  discard block
 block discarded – undo
154 154
 
155 155
     public function testWillLocateDependenciesEvenWithoutAutoloadFiles() : void
156 156
     {
157
-        $this->expectedInstallatonPath = $this->realpath(__DIR__ . '/../../asset/composer-installation-structure-without-autoload-files');
157
+        $this->expectedInstallatonPath = $this->realpath(__DIR__.'/../../asset/composer-installation-structure-without-autoload-files');
158 158
 
159 159
         $this
160 160
             ->composerInstaller
161 161
             ->expects(self::once())
162 162
             ->method('run')
163
-            ->willReturnCallback(function () : void {
163
+            ->willReturnCallback(function() : void {
164 164
                 self::assertSame($this->expectedInstallatonPath, getcwd());
165 165
             });
166 166
 
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
         self::assertEquals(
181 181
             new StaticClassMapSourceLocator(
182 182
                 [
183
-                    'A\\ClassName' => $this->realpath(__DIR__ . '/../../asset/composer-installation-structure-without-autoload-files/AClassName.php'),
184
-                    'B\\ClassName' => $this->realpath(__DIR__ . '/../../asset/composer-installation-structure-without-autoload-files/BClassName.php'),
183
+                    'A\\ClassName' => $this->realpath(__DIR__.'/../../asset/composer-installation-structure-without-autoload-files/AClassName.php'),
184
+                    'B\\ClassName' => $this->realpath(__DIR__.'/../../asset/composer-installation-structure-without-autoload-files/BClassName.php'),
185 185
                 ],
186 186
                 $this->astLocator
187 187
             ),
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
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
                 new ComparisonConstraint(ComparisonConstraint::OPERATOR_LTE, $lastVersion),
38 38
                 new ComparisonConstraint(
39 39
                     ComparisonConstraint::OPERATOR_GTE,
40
-                    Version::fromString($lastVersion->getMajor() . '.' . $lastVersion->getMinor() . '.0')
40
+                    Version::fromString($lastVersion->getMajor().'.'.$lastVersion->getMinor().'.0')
41 41
                 )
42 42
             ))
43 43
             ->sortedAscending();
Please login to merge, or discard this patch.