Completed
Push — master ( 8a361e...62f91c )
by Michael
02:51 queued 31s
created
src/StaticsMergerPlugin.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     {
93 93
         $targetDir = $package->getTargetDir();
94 94
 
95
-        return $this->getPackageBasePath($package) . ($targetDir ? '/'.$targetDir : '');
95
+        return $this->getPackageBasePath($package).($targetDir ? '/'.$targetDir : '');
96 96
     }
97 97
 
98 98
     protected function getPackageBasePath(PackageInterface $package) : string
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $this->filesystem->ensureDirectoryExists($this->vendorDir);
101 101
         $this->vendorDir = realpath($this->vendorDir);
102 102
 
103
-        return ($this->vendorDir ? $this->vendorDir.'/' : '') . $package->getPrettyName();
103
+        return ($this->vendorDir ? $this->vendorDir.'/' : '').$package->getPrettyName();
104 104
     }
105 105
 
106 106
     public static function getSubscribedEvents() : array
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
     {
298 298
         $packages = $this->composer->getRepositoryManager()->getLocalRepository()->getPackages();
299 299
 
300
-        return array_filter($packages, function (PackageInterface $package) {
300
+        return array_filter($packages, function(PackageInterface $package) {
301 301
             return $package->getType() == static::PACKAGE_TYPE && $this->getStaticMaps($package->getName());
302 302
         });
303 303
     }
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
         $listingArr = array_keys(\iterator_to_array($listings));
376 376
 
377 377
         // Remove dots :)
378
-        $listingArr = array_map(function ($listing) {
378
+        $listingArr = array_map(function($listing) {
379 379
             return rtrim($listing, '\/\.');
380 380
         }, $listingArr);
381 381
 
@@ -389,8 +389,8 @@  discard block
 block discarded – undo
389 389
     public function getRelativePath(string $from, string $to) : string
390 390
     {
391 391
         // some compatibility fixes for Windows paths
392
-        $from = is_dir($from) ? rtrim($from, '\/') . '/' : $from;
393
-        $to   = is_dir($to) ? rtrim($to, '\/') . '/' : $to;
392
+        $from = is_dir($from) ? rtrim($from, '\/').'/' : $from;
393
+        $to   = is_dir($to) ? rtrim($to, '\/').'/' : $to;
394 394
         $from = str_replace('\\', '/', $from);
395 395
         $to   = str_replace('\\', '/', $to);
396 396
 
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
                     $relPath = array_pad($relPath, $padLength, '..');
413 413
                     break;
414 414
                 } else {
415
-                    $relPath[0] = './' . $relPath[0];
415
+                    $relPath[0] = './'.$relPath[0];
416 416
                 }
417 417
             }
418 418
         }
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         return sprintf(
425 425
             '%s%s/app/design/frontend/%s/web',
426 426
             getcwd(),
427
-            $this->mageDir ? '/' . $this->mageDir : '',
427
+            $this->mageDir ? '/'.$this->mageDir : '',
428 428
             ucwords($mappingDir)
429 429
         );
430 430
     }
Please login to merge, or discard this patch.