Completed
Branch master (f8a0b6)
by Arnold
06:06
created
bin/build-global.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/../vendor/autoload.php';
3
+require_once __DIR__.'/../vendor/autoload.php';
4 4
 
5
-require_once __DIR__ . '/../src/array_functions.php';
6
-require_once __DIR__ . '/../src/case_functions.php';
7
-require_once __DIR__ . '/../src/class_functions.php';
8
-require_once __DIR__ . '/../src/string_functions.php';
9
-require_once __DIR__ . '/../src/server_functions.php';
10
-require_once __DIR__ . '/../src/file_functions.php';
5
+require_once __DIR__.'/../src/array_functions.php';
6
+require_once __DIR__.'/../src/case_functions.php';
7
+require_once __DIR__.'/../src/class_functions.php';
8
+require_once __DIR__.'/../src/string_functions.php';
9
+require_once __DIR__.'/../src/server_functions.php';
10
+require_once __DIR__.'/../src/file_functions.php';
11 11
 
12 12
 $userFunctions = get_defined_functions()['user'];
13 13
 $jasnyFunctions = [];
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
         $params[] = join(' ', array_filter([
35 35
             $param->getClass(),
36 36
             $param->isArray() ? 'array' : null,
37
-            '$' . $param->getName(),
38
-            $param->isDefaultValueAvailable() ? '= ' . var_export($param->getDefaultValue(), true) : null
37
+            '$'.$param->getName(),
38
+            $param->isDefaultValueAvailable() ? '= '.var_export($param->getDefaultValue(), true) : null
39 39
         ]));
40 40
         
41
-        $args[] = '$' . $param->getName();
41
+        $args[] = '$'.$param->getName();
42 42
     }
43 43
     
44 44
     $paramStr = join(', ', $params);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     unset($params, $args);
57 57
 }
58 58
 
59
-file_put_contents(dirname(__DIR__) . '/src/global.php', "<?php\n\n" . join("\n", $code));
59
+file_put_contents(dirname(__DIR__).'/src/global.php', "<?php\n\n".join("\n", $code));
60 60
 
61 61
 echo "Created src/global.php\n";
62 62
 
Please login to merge, or discard this patch.