Passed
Branch main (999baf)
by Salah
12:12
created
src/Commands/CriteriaCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * @see fire()
47 47
      * @return void
48 48
      */
49
-    public function handle(){
49
+    public function handle() {
50 50
         $this->laravel->call([$this, 'fire'], func_get_args());
51 51
     }
52 52
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             (new CriteriaGenerator([
65 65
                 'name' => $this->argument('name'),
66 66
                 'force' => $this->option('force'),
67
-            ],$domain,$domainPath))->run();
67
+            ], $domain, $domainPath))->run();
68 68
 
69 69
             $this->info("Criteria created successfully.");
70 70
         } catch (FileAlreadyExistsException $ex) {
Please login to merge, or discard this patch.
src/Commands/ControllerCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function __construct()
47 47
     {
48
-        $this->name = ((float) app()->version() >= 5.5  ? 'make:rest-controller' : 'make:resource');
48
+        $this->name = ((float) app()->version() >= 5.5 ? 'make:rest-controller' : 'make:resource');
49 49
         parent::__construct();
50 50
     }
51 51
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * @see fire()
56 56
      * @return void
57 57
      */
58
-    public function handle(){
58
+    public function handle() {
59 59
         $this->laravel->call([$this, 'fire'], func_get_args());
60 60
     }
61 61
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function fire()
68 68
     {
69
-        if($this->argument('domain') && $this->argument('domain-path')) {
69
+        if ($this->argument('domain') && $this->argument('domain-path')) {
70 70
             $domain = $this->argument('domain');
71 71
             $domainPath = $this->argument('domain-path');
72 72
             
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             (new ControllerGenerator([
90 90
                 'name' => $this->argument('name'),
91 91
                 'force' => $this->option('force'),
92
-            ],$domain,$domainPath))->run();
92
+            ], $domain, $domainPath))->run();
93 93
 
94 94
             $this->info($this->type . ' created successfully.');
95 95
 
Please login to merge, or discard this patch.
src/Commands/TransformerCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @see fire()
46 46
      * @return void
47 47
      */
48
-    public function handle(){
48
+    public function handle() {
49 49
         $this->laravel->call([$this, 'fire'], func_get_args());
50 50
     }
51 51
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             (new TransformerGenerator([
63 63
                 'name' => $this->argument('name'),
64 64
                 'force' => $this->option('force'),
65
-            ],$domain,$domainPath))->run();
65
+            ], $domain, $domainPath))->run();
66 66
             $this->info("Transformer created successfully.");
67 67
         } catch (FileAlreadyExistsException $e) {
68 68
             $this->error($this->type . ' already exists!');
Please login to merge, or discard this patch.
src/Validator/AbstractValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
             return $rules;
217 217
         }
218 218
 
219
-        array_walk($rules, function (&$rules, $field) use ($id) {
219
+        array_walk($rules, function(&$rules, $field) use ($id) {
220 220
             if (!is_array($rules)) {
221 221
                 $rules = explode("|", $rules);
222 222
             }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
                 $p[2] = $id;
242 242
 
243 243
                 $params = implode(",", $p);
244
-                $rules[$ruleIdx] = $name.":".$params;
244
+                $rules[$ruleIdx] = $name . ":" . $params;
245 245
             }
246 246
         });
247 247
 
Please login to merge, or discard this patch.