Passed
Pull Request — master (#123)
by Erik
03:18
created
src/Types/UpdateInputType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Types/CreateInputType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Types/Concerns/InteractsWithPolymorphism.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Types/CreateUnionEntityInputType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Console/ModelSchemaCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Utils/Utils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/BakeryServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Support/Arguments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Support/RootMutation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.