Completed
Push — master ( bd0a16...63d8d6 )
by Raphael
02:54
created
src/Scaffolder/Compilers/Core/ModelCompiler.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
         if (File::exists(base_path('scaffolder-config/cache/view_edit_' . $hash . self::CACHE_EXT)))
30 30
         {
31 31
             return $this->store($modelName, $scaffolderConfig, '', new FileToCompile(true, $hash));
32
-        }
33
-        else
32
+        } else
34 33
         {
35 34
             $this->stub = $stub;
36 35
 
@@ -61,8 +60,7 @@  discard block
 block discarded – undo
61 60
         if ($fileToCompile->cached)
62 61
         {
63 62
             File::copy(base_path('scaffolder-config/cache/view_edit_' . $fileToCompile->hash . self::CACHE_EXT), $path);
64
-        }
65
-        else
63
+        } else
66 64
         {
67 65
             File::put(base_path('scaffolder-config/cache/view_edit_' . $fileToCompile->hash . self::CACHE_EXT), $compiled);
68 66
             File::copy(base_path('scaffolder-config/cache/view_edit_' . $fileToCompile->hash . self::CACHE_EXT), $path);
@@ -89,8 +87,7 @@  discard block
 block discarded – undo
89 87
             {
90 88
                 $fields .= sprintf(self::getInputFor($field) . PHP_EOL, $field->name);
91 89
                 $firstIteration = false;
92
-            }
93
-            else
90
+            } else
94 91
             {
95 92
                 $fields .= sprintf("\t" . self::getInputFor($field) . PHP_EOL, $field->name);
96 93
             }
Please login to merge, or discard this patch.
src/Scaffolder/Compilers/View/CreateViewCompiler.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
         if (File::exists(base_path('scaffolder-config/cache/view_edit_' . $hash . self::CACHE_EXT)))
30 30
         {
31 31
             return $this->store($modelName, $scaffolderConfig, '', new FileToCompile(true, $hash));
32
-        }
33
-        else
32
+        } else
34 33
         {
35 34
             $this->stub = $stub;
36 35
 
@@ -61,8 +60,7 @@  discard block
 block discarded – undo
61 60
         if ($fileToCompile->cached)
62 61
         {
63 62
             File::copy(base_path('scaffolder-config/cache/view_edit_' . $fileToCompile->hash . self::CACHE_EXT), $path);
64
-        }
65
-        else
63
+        } else
66 64
         {
67 65
             File::put(base_path('scaffolder-config/cache/view_edit_' . $fileToCompile->hash . self::CACHE_EXT), $compiled);
68 66
             File::copy(base_path('scaffolder-config/cache/view_edit_' . $fileToCompile->hash . self::CACHE_EXT), $path);
@@ -89,8 +87,7 @@  discard block
 block discarded – undo
89 87
             {
90 88
                 $fields .= sprintf(self::getInputFor($field) . PHP_EOL, $field->name);
91 89
                 $firstIteration = false;
92
-            }
93
-            else
90
+            } else
94 91
             {
95 92
                 $fields .= sprintf("\t" . self::getInputFor($field) . PHP_EOL, $field->name);
96 93
             }
Please login to merge, or discard this patch.