Passed
Pull Request — master (#123)
by Erik
03:18
created
src/Mutations/CreateMutation.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
         $input = $args->input->toArray();
34 34
 
35
-        return DB::transaction(function () use ($input) {
35
+        return DB::transaction(function() use ($input) {
36 36
             return $this->getModelSchema()->createIfAuthorized($input);
37 37
         });
38 38
     }
Please login to merge, or discard this patch.
src/Mutations/DeleteMutation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function args(): array
43 43
     {
44
-        return $this->modelSchema->getLookupFields()->map(function (Field $field) {
44
+        return $this->modelSchema->getLookupFields()->map(function(Field $field) {
45 45
             return $field->getType();
46 46
         })->toArray();
47 47
     }
Please login to merge, or discard this patch.
src/Mutations/Concerns/QueriesModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     {
64 64
         $result = $this->find($args);
65 65
 
66
-        if (! $result) {
66
+        if (!$result) {
67 67
             throw (new ModelNotFoundException)->setModel(class_basename($this->model));
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/Support/RootQuery.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.