@@ -34,8 +34,8 @@ |
||
34 | 34 | { |
35 | 35 | $modelName = $this->replaceModelName($this->argument('model')); |
36 | 36 | $stub = str_replace( |
37 | - ['NamespacedDummyModel', 'DummyNamespace', 'DummyModel', 'dummies'], |
|
38 | - [$this->repalceModelNamespace($this->argument('model')), $this->getNamespace($name), $modelName, strtolower(Str::plural($modelName))], |
|
37 | + [ 'NamespacedDummyModel', 'DummyNamespace', 'DummyModel', 'dummies' ], |
|
38 | + [ $this->repalceModelNamespace($this->argument('model')), $this->getNamespace($name), $modelName, strtolower(Str::plural($modelName)) ], |
|
39 | 39 | $stub |
40 | 40 | ); |
41 | 41 |
@@ -18,8 +18,8 @@ |
||
18 | 18 | */ |
19 | 19 | public function rejectNullValues($resource) |
20 | 20 | { |
21 | - return array_filter($resource, function ($value) { |
|
22 | - return ! is_null($value) || ! empty($value); |
|
21 | + return array_filter($resource, function($value) { |
|
22 | + return !is_null($value) || !empty($value); |
|
23 | 23 | }); |
24 | 24 | } |
25 | 25 |
@@ -19,13 +19,13 @@ |
||
19 | 19 | * @param array $data |
20 | 20 | * @return Model |
21 | 21 | */ |
22 | - public function update(Model $model, array $data = []): ?Model |
|
22 | + public function update(Model $model, array $data = [ ]): ?Model |
|
23 | 23 | { |
24 | - if (! $this->allowUpdating) { |
|
24 | + if (!$this->allowUpdating) { |
|
25 | 25 | return null; |
26 | 26 | } |
27 | 27 | |
28 | - return tap($model, function ($model) use ($data) { |
|
28 | + return tap($model, function($model) use ($data) { |
|
29 | 29 | $model->update(Arr::only($data, $this->getUpdatableColumns())); |
30 | 30 | }); |
31 | 31 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function create(array $data): ?Model |
22 | 22 | { |
23 | - if (! $this->allowCreation) { |
|
23 | + if (!$this->allowCreation) { |
|
24 | 24 | return null; |
25 | 25 | } |
26 | 26 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | public function destroy($ids): ?bool |
20 | 20 | { |
21 | 21 | $ids = (array) $ids; |
22 | - if (! $this->allowDeleting) { |
|
22 | + if (!$this->allowDeleting) { |
|
23 | 23 | return null; |
24 | 24 | } |
25 | 25 |