Passed
Push — master ( 4c3173...b44d3d )
by Mohammad
02:40
created
src/Utility/Controller.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -344,9 +344,10 @@
 block discarded – undo
344 344
         }
345 345
 
346 346
         if ($entity) {
347
-            if($appendEntity)
348
-                return response()->json(  ['status' => true, 'message' => __('messages.success'), 'data' => $entity],
347
+            if($appendEntity) {
348
+                            return response()->json(  ['status' => true, 'message' => __('messages.success'), 'data' => $entity],
349 349
                     JsonResponse::HTTP_OK);
350
+            }
350 351
             return response()->json(null, JsonResponse::HTTP_NO_CONTENT);
351 352
         }
352 353
 
Please login to merge, or discard this patch.
src/Commands/Generator.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,8 +78,9 @@  discard block
 block discarded – undo
78 78
         $this->generate($path, $repository, 'Repository');
79 79
 
80 80
         $this->repoNamespace = stripslashes($this->repoNamespace);
81
-        if($this->repoNamespace)
82
-            $this->repoNamespace = $this->repoNamespace."\\";
81
+        if($this->repoNamespace) {
82
+                    $this->repoNamespace = $this->repoNamespace."\\";
83
+        }
83 84
         File::append(\Config::get('repository.route_path') . '/web.php', "\n" . 'Route::resource(\'' . strtolower(str_plural($this->repoName)) . "', '{$this->repoNamespace}{$this->repoName}Controller');");
84 85
 
85 86
     }
@@ -117,7 +118,7 @@  discard block
 block discarded – undo
117 118
         if($type == 'Entity')
118 119
         {
119 120
             file_put_contents($filePath . "{$this->repoName}.php", $template);
120
-        }else
121
+        } else
121 122
         {
122 123
             file_put_contents($filePath . "{$this->repoName}{$type}.php", $template);
123 124
         }
Please login to merge, or discard this patch.