Completed
Push — master ( 5295ce...5f8289 )
by Michael
04:27 queued 01:32
created
Category
src/StaticsMergerPlugin.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $targetDir = $package->getTargetDir();
90 90
 
91
-        return $this->getPackageBasePath($package) . ($targetDir ? '/'.$targetDir : '');
91
+        return $this->getPackageBasePath($package).($targetDir ? '/'.$targetDir : '');
92 92
     }
93 93
 
94 94
     protected function getPackageBasePath(PackageInterface $package) : string
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $this->filesystem->ensureDirectoryExists($this->vendorDir);
97 97
         $this->vendorDir = realpath($this->vendorDir);
98 98
 
99
-        return ($this->vendorDir ? $this->vendorDir.'/' : '') . $package->getPrettyName();
99
+        return ($this->vendorDir ? $this->vendorDir.'/' : '').$package->getPrettyName();
100 100
     }
101 101
 
102 102
     public static function getSubscribedEvents() : array
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     {
238 238
         $packages = $this->composer->getRepositoryManager()->getLocalRepository()->getPackages();
239 239
 
240
-        return array_filter($packages, function (PackageInterface $package) {
240
+        return array_filter($packages, function(PackageInterface $package) {
241 241
             return $package->getType() == static::PACKAGE_TYPE && $this->getStaticMaps($package->getName());
242 242
         });
243 243
     }
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         $listingArr = array_keys(\iterator_to_array($listings));
316 316
 
317 317
         // Remove dots :)
318
-        $listingArr = array_map(function ($listing) {
318
+        $listingArr = array_map(function($listing) {
319 319
             return rtrim($listing, '\/\.');
320 320
         }, $listingArr);
321 321
 
@@ -329,8 +329,8 @@  discard block
 block discarded – undo
329 329
     public function getRelativePath(string $from, string $to) : string
330 330
     {
331 331
         // some compatibility fixes for Windows paths
332
-        $from = is_dir($from) ? rtrim($from, '\/') . '/' : $from;
333
-        $to   = is_dir($to)   ? rtrim($to, '\/') . '/'   : $to;
332
+        $from = is_dir($from) ? rtrim($from, '\/').'/' : $from;
333
+        $to   = is_dir($to) ? rtrim($to, '\/').'/' : $to;
334 334
         $from = str_replace('\\', '/', $from);
335 335
         $to   = str_replace('\\', '/', $to);
336 336
 
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
                     $relPath = array_pad($relPath, $padLength, '..');
353 353
                     break;
354 354
                 } else {
355
-                    $relPath[0] = './' . $relPath[0];
355
+                    $relPath[0] = './'.$relPath[0];
356 356
                 }
357 357
             }
358 358
         }
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
         return sprintf(
365 365
             '%s%s/app/design/frontend/%s/web',
366 366
             getcwd(),
367
-            $this->mageDir ? '/' . $this->mageDir : '',
367
+            $this->mageDir ? '/'.$this->mageDir : '',
368 368
             ucwords($mappingDir)
369 369
         );
370 370
     }
Please login to merge, or discard this patch.