Passed
Branch master (8d4617)
by Erik
04:38
created
src/Mutations/AttachPivotMutation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         }
48 48
 
49 49
         return $this->modelSchema->getLookupFields()
50
-            ->map(function (Field $field) {
50
+            ->map(function(Field $field) {
51 51
                 return $field->getType();
52 52
             })
53 53
             ->merge(['input' => $type])
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $input = $args->input->toArray();
77 77
         $model = $this->findOrFail($args);
78 78
 
79
-        return DB::transaction(function () use ($input, $model) {
79
+        return DB::transaction(function() use ($input, $model) {
80 80
             $modelSchema = $this->registry->getSchemaForModel($model);
81 81
 
82 82
             $relation = $this->getRelation($model);
Please login to merge, or discard this patch.
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.