@@ -46,7 +46,7 @@ discard block |
||
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 |
||
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) { |
@@ -45,7 +45,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -45,7 +45,7 @@ discard block |
||
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 |
||
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!'); |
@@ -216,7 +216,7 @@ discard block |
||
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 |
||
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 |