@@ -50,7 +50,7 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | protected function getFillableFields(): Collection |
| 52 | 52 | { |
| 53 | - return parent::getFillableFields()->map(function (Field $field) { |
|
| 53 | + return parent::getFillableFields()->map(function(Field $field) { |
|
| 54 | 54 | return $field->nullable(); |
| 55 | 55 | }); |
| 56 | 56 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $fields = parent::getFillableFields(); |
| 50 | 50 | $defaults = $this->model->getAttributes(); |
| 51 | 51 | |
| 52 | - return $fields->map(function (Field $field, string $key) use ($defaults) { |
|
| 52 | + return $fields->map(function(Field $field, string $key) use ($defaults) { |
|
| 53 | 53 | if (in_array($key, array_keys($defaults))) { |
| 54 | 54 | return $field->nullable(); |
| 55 | 55 | } |
@@ -39,11 +39,11 @@ |
||
| 39 | 39 | public function getModelSchemas(): Collection |
| 40 | 40 | { |
| 41 | 41 | Utils::invariant( |
| 42 | - ! empty($this->modelSchemas), |
|
| 42 | + !empty($this->modelSchemas), |
|
| 43 | 43 | 'No model schemas defined on "'.get_class($this).'"' |
| 44 | 44 | ); |
| 45 | 45 | |
| 46 | - return collect($this->modelSchemas)->map(function (string $class) { |
|
| 46 | + return collect($this->modelSchemas)->map(function(string $class) { |
|
| 47 | 47 | return $this->registry->getModelSchema($class); |
| 48 | 48 | }); |
| 49 | 49 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function fields(): array |
| 20 | 20 | { |
| 21 | - return $this->getModelSchemas()->reduce(function (array $fields, ModelSchema $modelSchema) { |
|
| 21 | + return $this->getModelSchemas()->reduce(function(array $fields, ModelSchema $modelSchema) { |
|
| 22 | 22 | $inputType = 'Create'.$modelSchema->typename().'Input'; |
| 23 | 23 | |
| 24 | 24 | $fields[Utils::single($modelSchema->typename())] = $this->registry->field($inputType)->nullable(); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | if (is_null($model)) { |
| 42 | 42 | $model = $this->rootNamespace().$this->argument('name'); |
| 43 | - } elseif (! starts_with($model, [$this->rootNamespace(), '\\'])) { |
|
| 43 | + } elseif (!starts_with($model, [$this->rootNamespace(), '\\'])) { |
|
| 44 | 44 | $model = $this->rootNamespace().$model; |
| 45 | 45 | } |
| 46 | 46 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public static function invariant($test, $message = '', ...$args) |
| 16 | 16 | { |
| 17 | - if (! $test) { |
|
| 17 | + if (!$test) { |
|
| 18 | 18 | if (count($args)) { |
| 19 | 19 | $message = sprintf($message, $args); |
| 20 | 20 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | protected function registerRoutes() |
| 32 | 32 | { |
| 33 | - if (! config('bakery.path')) { |
|
| 33 | + if (!config('bakery.path')) { |
|
| 34 | 34 | return; |
| 35 | 35 | } |
| 36 | 36 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | protected function registerBakery() |
| 77 | 77 | { |
| 78 | - $this->app->singleton(Bakery::class, function () { |
|
| 78 | + $this->app->singleton(Bakery::class, function() { |
|
| 79 | 79 | $bakery = new Bakery(); |
| 80 | 80 | |
| 81 | 81 | $this->registerSecurityRules(); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function offsetGet($offset) |
| 34 | 34 | { |
| 35 | - if (! $this->offsetExists($offset)) { |
|
| 35 | + if (!$this->offsetExists($offset)) { |
|
| 36 | 36 | return null; |
| 37 | 37 | } |
| 38 | 38 | |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $fields = collect($this->fields); |
| 31 | 31 | |
| 32 | - return $fields->map(function (RootField $field) { |
|
| 32 | + return $fields->map(function(RootField $field) { |
|
| 33 | 33 | return $field->toArray(); |
| 34 | 34 | }); |
| 35 | 35 | } |