@@ -29,8 +29,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -29,8 +29,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |