Test Failed
Pull Request — master (#124)
by Andrii
11:47
created
src/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,6 +247,6 @@
 block discarded – undo
247 247
      */
248 248
     public static function require(string $config): callable
249 249
     {
250
-        return static fn () => require $config;
250
+        return static fn() => require $config;
251 251
     }
252 252
 }
Please login to merge, or discard this patch.
src/Config/Envs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     protected function writeFile(string $path, array $data): void
15 15
     {
16
-        if($data) {
16
+        if ($data) {
17 17
             $envs = '[]'; //Helper::exportVar($data);
18 18
         } else {
19 19
             $envs = '[]';
Please login to merge, or discard this patch.
src/Util/PhpPrinter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
         $limit = 10;
120 120
         while (preg_match('~\'__(\w+)__\'~', $output)) {
121 121
             // TODO will be fixed soon
122
-            if (--$limit<1) {
122
+            if (--$limit < 1) {
123 123
                 throw new \Exception('too much');
124 124
             }
125 125
             $output = strtr($output, static::$tokens);
Please login to merge, or discard this patch.
src/Reader/PhpReader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $params = $this->builder->getVars()['params'] ?? [];
38 38
 
39
-        $result = static function (array $params) {
39
+        $result = static function(array $params) {
40 40
             return require func_get_arg(1);
41 41
         };
42 42
                                   
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     protected function extractUses($ast)
55 55
     {
56 56
         /** @var Stmt $node */
57
-        foreach ($ast as $node){
57
+        foreach ($ast as $node) {
58 58
             if (isset($node->type) && $node->type == Use_::TYPE_NORMAL and !empty($node->uses)) {
59 59
                 foreach ($node->uses as $use) {
60 60
                     $className = end($use->name->parts);
Please login to merge, or discard this patch.