Completed
Pull Request — master (#504)
by
unknown
30s
created
artifacts/phar/build.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2
-chdir(__DIR__ . '/../../');
2
+chdir(__DIR__.'/../../');
3 3
 
4 4
 if (!file_exists('vendor/autoload.php')) {
5
-    echo '[ERROR] It\'s required to run "composer install" before building PhpMetrics!' . PHP_EOL;
5
+    echo '[ERROR] It\'s required to run "composer install" before building PhpMetrics!'.PHP_EOL;
6 6
     exit(1);
7 7
 }
8 8
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 }
29 29
 
30 30
 foreach ($files as $file) {
31
-    $phar->addFromString(str_replace(__DIR__ . '/', '', $file), file_get_contents($file));
31
+    $phar->addFromString(str_replace(__DIR__.'/', '', $file), file_get_contents($file));
32 32
 }
33 33
 
34 34
 $phar->setStub(<<<'STUB'
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 
67 67
 function rglob($pattern = '*', $flags = 0, $path = '')
68 68
 {
69
-    $paths = glob($path . '*', GLOB_MARK | GLOB_ONLYDIR | GLOB_NOSORT);
70
-    $files = glob($path . $pattern, $flags);
69
+    $paths = glob($path.'*', GLOB_MARK|GLOB_ONLYDIR|GLOB_NOSORT);
70
+    $files = glob($path.$pattern, $flags);
71 71
     foreach ($paths as $path) {
72 72
         $files = array_merge($files, rglob($pattern, $flags, $path));
73 73
     }
Please login to merge, or discard this patch.