Completed
Pull Request — master (#504)
by
unknown
30s
created
src/Hal/Component/File/Writer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         /** @var resource $csvHandler */
44 44
         $csvHandler = fopen($path, 'wb');
45 45
         fputcsv($csvHandler, $header);
46
-        array_map(static function (array $line) use ($csvHandler): void {
46
+        array_map(static function(array $line) use ($csvHandler): void {
47 47
             fputcsv($csvHandler, $line);
48 48
         }, $data);
49 49
         fclose($csvHandler);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function writePrettyJson(string $path, mixed $data): void
57 57
     {
58
-        $this->write($path, json_encode($data, JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT));
58
+        $this->write($path, json_encode($data, JSON_THROW_ON_ERROR|JSON_PRETTY_PRINT));
59 59
     }
60 60
 
61 61
     /**
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
             $relativeName = substr_replace($file->getPathname(), '', 0, strlen($src));
91 91
 
92 92
             if ($file->isDir()) {
93
-                mkdir($dest . '/' . $relativeName);
93
+                mkdir($dest.'/'.$relativeName);
94 94
             } else {
95
-                copy($file->getPathname(), $dest . '/' . $relativeName);
95
+                copy($file->getPathname(), $dest.'/'.$relativeName);
96 96
             }
97 97
         }
98 98
     }
Please login to merge, or discard this patch.
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.