@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | { |
118 | 118 | $validatorGenerator = new ValidatorGenerator([ |
119 | 119 | 'name' => $this->name, |
120 | - ],$this->domain,$this->domainPath); |
|
120 | + ], $this->domain, $this->domainPath); |
|
121 | 121 | |
122 | 122 | $validator = $validatorGenerator->getRootNamespace() . '\\' . $validatorGenerator->getName(); |
123 | 123 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | { |
138 | 138 | $repositoryGenerator = new RepositoryInterfaceGenerator([ |
139 | 139 | 'name' => $this->name, |
140 | - ],$this->domain,$this->domainPath); |
|
140 | + ], $this->domain, $this->domainPath); |
|
141 | 141 | |
142 | 142 | $repository = $repositoryGenerator->getRootNamespace() . '\\' . $repositoryGenerator->getName(); |
143 | 143 |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | $repositoryGenerator = new RepositoryInterfaceGenerator([ |
74 | 74 | 'name' => $this->name, |
75 | - ],$this->domain,$this->domainPath); |
|
75 | + ], $this->domain, $this->domainPath); |
|
76 | 76 | |
77 | 77 | $repository = $repositoryGenerator->getRootNamespace() . '\\' . $repositoryGenerator->getName(); |
78 | 78 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | { |
92 | 92 | $repositoryGenerator = new RepositoryEloquentGenerator([ |
93 | 93 | 'name' => $this->name, |
94 | - ],$this->domain,$this->domainPath); |
|
94 | + ], $this->domain, $this->domainPath); |
|
95 | 95 | |
96 | 96 | $repository = $repositoryGenerator->getRootNamespace() . '\\' . $repositoryGenerator->getName(); |
97 | 97 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | { |
65 | 65 | $modelGenerator = new ModelGenerator([ |
66 | 66 | 'name' => $this->name |
67 | - ],$this->domain,$this->domainPath); |
|
67 | + ], $this->domain, $this->domainPath); |
|
68 | 68 | $model = $modelGenerator->getRootNamespace() . '\\' . $modelGenerator->getName(); |
69 | 69 | $model = str_replace([ |
70 | 70 | "\\", |
@@ -123,7 +123,7 @@ |
||
123 | 123 | 'name' => $this->name, |
124 | 124 | 'rules' => $this->rules, |
125 | 125 | 'force' => $this->force, |
126 | - ],$this->domain,$this->domainPath); |
|
126 | + ], $this->domain, $this->domainPath); |
|
127 | 127 | |
128 | 128 | $validator = $validatorGenerator->getRootNamespace() . '\\' . $validatorGenerator->getName(); |
129 | 129 |
@@ -83,7 +83,7 @@ |
||
83 | 83 | */ |
84 | 84 | public function getColumn($rules) |
85 | 85 | { |
86 | - return Arr::first(explode('=>', $rules), function ($key, $value) { |
|
86 | + return Arr::first(explode('=>', $rules), function($key, $value) { |
|
87 | 87 | return $value; |
88 | 88 | }); |
89 | 89 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function getColumn($schema) |
118 | 118 | { |
119 | - return Arr::first(explode(':', $schema), function ($key, $value) { |
|
119 | + return Arr::first(explode(':', $schema), function($key, $value) { |
|
120 | 120 | return $value; |
121 | 121 | }); |
122 | 122 | } |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | */ |
158 | 158 | public function getCustomAttribute($column) |
159 | 159 | { |
160 | - return (array)$this->customAttributes[$column]; |
|
160 | + return (array) $this->customAttributes[$column]; |
|
161 | 161 | } |
162 | 162 | |
163 | 163 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | { |
45 | 45 | $transformerGenerator = new TransformerGenerator([ |
46 | 46 | 'name' => $this->name |
47 | - ],$this->domain,$this->domainPath); |
|
47 | + ], $this->domain, $this->domainPath); |
|
48 | 48 | $transformer = $transformerGenerator->getRootNamespace() . '\\' . $transformerGenerator->getName() . 'Transformer'; |
49 | 49 | $transformer = str_replace([ |
50 | 50 | "\\", |
@@ -163,7 +163,7 @@ |
||
163 | 163 | } |
164 | 164 | |
165 | 165 | |
166 | - /** |
|
166 | + /** |
|
167 | 167 | * Get application namespace |
168 | 168 | * |
169 | 169 | * @return string |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * |
56 | 56 | * @param array $options |
57 | 57 | */ |
58 | - public function __construct(array $options = [],string $domain = null, string $domainPath = null) |
|
58 | + public function __construct(array $options = [], string $domain = null, string $domainPath = null) |
|
59 | 59 | { |
60 | 60 | $this->filesystem = new Filesystem; |
61 | 61 | $this->options = $options; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | { |
100 | 100 | $path = config('domains.paths.repo-generator.stubsOverridePath', __DIR__); |
101 | 101 | |
102 | - if(!file_exists($path . '/Stubs/' . $this->stub . '.stub')){ |
|
102 | + if (!file_exists($path . '/Stubs/' . $this->stub . '.stub')) { |
|
103 | 103 | $path = __DIR__; |
104 | 104 | } |
105 | 105 | |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | */ |
171 | 171 | public function getAppNamespace() |
172 | 172 | { |
173 | - return 'Domains\\'.$this->domain.'\\'; |
|
173 | + return 'Domains\\' . $this->domain . '\\'; |
|
174 | 174 | } |
175 | 175 | |
176 | 176 |
@@ -75,7 +75,7 @@ |
||
75 | 75 | return array_merge(parent::getReplacements(), [ |
76 | 76 | 'fillable' => $this->getFillable(), |
77 | 77 | 'relations' => $relations, |
78 | - 'use_relations' => ucfirst($this->name).'Relations' |
|
78 | + 'use_relations' => ucfirst($this->name) . 'Relations' |
|
79 | 79 | ]); |
80 | 80 | } |
81 | 81 |