Passed
Push — master ( 940892...273383 )
by Mohammad
04:50
created
src/Commands/Generator.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
         if($type == 'Entity')
116 116
         {
117 117
             file_put_contents($filePath . "{$this->repoName}.php", $template);
118
-        }else
118
+        } else
119 119
         {
120 120
             file_put_contents($filePath . "{$this->repoName}{$type}.php", $template);
121 121
         }
Please login to merge, or discard this patch.
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.