Completed
Pull Request — master (#120)
by Marco
03:56
created
src/LocateDependencies/LocateDependenciesViaComposer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
     public function __invoke(string $installationPath) : SourceLocator
44 44
     {
45 45
         Assert::that($installationPath)->directory();
46
-        Assert::that($installationPath . '/composer.json')->file();
46
+        Assert::that($installationPath.'/composer.json')->file();
47 47
 
48
-        $this->runInDirectory(function () use ($installationPath) : void {
48
+        $this->runInDirectory(function() use ($installationPath) : void {
49 49
             $installer = ($this->makeComposerInstaller)($installationPath);
50 50
 
51 51
             Assert::that($installer)->isInstanceOf(Installer::class);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             (new LocatorForInstalledJson())->__invoke($installationPath, $this->astLocator),
68 68
             new PhpInternalSourceLocator($this->astLocator),
69 69
         ]);
70
-        $autoloadStatic = $installationPath . '/vendor/composer/autoload_static.php';
70
+        $autoloadStatic = $installationPath.'/vendor/composer/autoload_static.php';
71 71
 
72 72
         Assert::that($autoloadStatic)->file();
73 73
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $filesMapProperty = $autoloadStatic->getProperty('files');
111 111
 
112
-        if (! $filesMapProperty) {
112
+        if (!$filesMapProperty) {
113 113
             return new AggregateSourceLocator();
114 114
         }
115 115
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
               ->file();
125 125
 
126 126
         return new AggregateSourceLocator(array_values(array_map(
127
-            function (string $path) : SourceLocator {
127
+            function(string $path) : SourceLocator {
128 128
                 $realPath = realpath($path);
129 129
 
130 130
                 Assert::that($realPath)->string();
Please login to merge, or discard this patch.