@@ -59,8 +59,7 @@ |
||
| 59 | 59 | ]); |
| 60 | 60 | |
| 61 | 61 | return $file->id; |
| 62 | - } |
|
| 63 | - else |
|
| 62 | + } else |
|
| 64 | 63 | { |
| 65 | 64 | // Indicate that we are not done with all the chunks. |
| 66 | 65 | return null; |
@@ -174,8 +174,9 @@ |
||
| 174 | 174 | $success = $model->destroy($ids); |
| 175 | 175 | |
| 176 | 176 | $status = array("error" => true, "message" => "Error deleting object"); |
| 177 | - if ($success) |
|
| 178 | - $status = array("error" => false, "message" => "Object successfully deleted"); |
|
| 177 | + if ($success) { |
|
| 178 | + $status = array("error" => false, "message" => "Object successfully deleted"); |
|
| 179 | + } |
|
| 179 | 180 | |
| 180 | 181 | return json_encode($status); |
| 181 | 182 | |
@@ -120,8 +120,7 @@ discard block |
||
| 120 | 120 | // get pagination conditions |
| 121 | 121 | if(isset($params["pagination"])) { |
| 122 | 122 | $pagination = $params["pagination"]; |
| 123 | - } |
|
| 124 | - else { // set default |
|
| 123 | + } else { // set default |
|
| 125 | 124 | $pagination = ["actual" => 1, "itensPerPage" => 25 ] ; |
| 126 | 125 | } |
| 127 | 126 | |
@@ -177,8 +176,7 @@ discard block |
||
| 177 | 176 | // get pagination conditions |
| 178 | 177 | if(isset($params["pagination"])) { |
| 179 | 178 | $pagination = $params["pagination"]; |
| 180 | - } |
|
| 181 | - else { // set default |
|
| 179 | + } else { // set default |
|
| 182 | 180 | $pagination = ["actual" => 1, "itensPerPage" => 25 ] ; |
| 183 | 181 | } |
| 184 | 182 | |
@@ -30,8 +30,7 @@ discard block |
||
| 30 | 30 | if (File::exists(base_path('scaffolder-config/cache/view_create_' . $hash . self::CACHE_EXT))) |
| 31 | 31 | { |
| 32 | 32 | return $this->store($modelName, $scaffolderConfig, '', new FileToCompile(true, $hash)); |
| 33 | - } |
|
| 34 | - else |
|
| 33 | + } else |
|
| 35 | 34 | { |
| 36 | 35 | $this->stub = $stub; |
| 37 | 36 | |
@@ -66,8 +65,7 @@ discard block |
||
| 66 | 65 | if ($fileToCompile->cached) |
| 67 | 66 | { |
| 68 | 67 | File::copy(base_path('scaffolder-config/cache/view_create_' . $fileToCompile->hash . self::CACHE_EXT), $path); |
| 69 | - } |
|
| 70 | - else |
|
| 68 | + } else |
|
| 71 | 69 | { |
| 72 | 70 | File::put(base_path('scaffolder-config/cache/view_create_' . $fileToCompile->hash . self::CACHE_EXT), $compiled); |
| 73 | 71 | File::copy(base_path('scaffolder-config/cache/view_create_' . $fileToCompile->hash . self::CACHE_EXT), $path); |
@@ -94,8 +92,7 @@ discard block |
||
| 94 | 92 | { |
| 95 | 93 | $fields .= sprintf(self::getInputFor($field) . PHP_EOL, $field->name); |
| 96 | 94 | $firstIteration = false; |
| 97 | - } |
|
| 98 | - else |
|
| 95 | + } else |
|
| 99 | 96 | { |
| 100 | 97 | $fields .= sprintf("\t" . self::getInputFor($field) . PHP_EOL, $field->name); |
| 101 | 98 | } |
@@ -30,8 +30,7 @@ discard block |
||
| 30 | 30 | if (File::exists(base_path('scaffolder-config/cache/view_edit_' . $hash . self::CACHE_EXT))) |
| 31 | 31 | { |
| 32 | 32 | return $this->store($modelName, $scaffolderConfig, '', new FileToCompile(true, $hash)); |
| 33 | - } |
|
| 34 | - else |
|
| 33 | + } else |
|
| 35 | 34 | { |
| 36 | 35 | $this->stub = $stub; |
| 37 | 36 | |
@@ -67,8 +66,7 @@ discard block |
||
| 67 | 66 | if ($fileToCompile->cached) |
| 68 | 67 | { |
| 69 | 68 | File::copy(base_path('scaffolder-config/cache/view_edit_' . $fileToCompile->hash . self::CACHE_EXT), $path); |
| 70 | - } |
|
| 71 | - else |
|
| 69 | + } else |
|
| 72 | 70 | { |
| 73 | 71 | File::put(base_path('scaffolder-config/cache/view_edit_' . $fileToCompile->hash . self::CACHE_EXT), $compiled); |
| 74 | 72 | File::copy(base_path('scaffolder-config/cache/view_edit_' . $fileToCompile->hash . self::CACHE_EXT), $path); |
@@ -95,8 +93,7 @@ discard block |
||
| 95 | 93 | { |
| 96 | 94 | $fields .= sprintf(self::getInputFor($field) . PHP_EOL, $field->name); |
| 97 | 95 | $firstIteration = false; |
| 98 | - } |
|
| 99 | - else |
|
| 96 | + } else |
|
| 100 | 97 | { |
| 101 | 98 | $fields .= sprintf("\t" . self::getInputFor($field) . PHP_EOL, $field->name); |
| 102 | 99 | } |