Passed
Pull Request — master (#132)
by
unknown
03:48
created
src/Bakery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function executeQuery($input, $schema = null): ExecutionResult
36 36
     {
37
-        if (! $schema) {
37
+        if (!$schema) {
38 38
             $schema = $this->schema();
39 39
         } elseif ($schema instanceof BakerySchema) {
40 40
             $schema = $schema->toGraphQLSchema();
Please login to merge, or discard this patch.
src/Http/Controllers/BakeryController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     public function graphiql(Request $request, Bakery $bakery)
62 62
     {
63
-        if (! app()->isLocal()) {
63
+        if (!app()->isLocal()) {
64 64
             abort(404);
65 65
         }
66 66
 
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     ->middleware(config('bakery.middleware', []))
8 8
     ->as('bakery.')
9 9
     ->prefix(config('bakery.path'))
10
-    ->group(function () {
10
+    ->group(function() {
11 11
         $controller = config('bakery.controller', 'BakeryController@graphql');
12 12
 
13 13
         Route::get('/', $controller)->name('graphql');
Please login to merge, or discard this patch.
src/Queries/SingleEntityQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     {
93 93
         foreach ($args as $key => $value) {
94 94
             if ($value instanceof Arguments) {
95
-                $query->whereHas($key, function (Builder $query) use ($value) {
95
+                $query->whereHas($key, function(Builder $query) use ($value) {
96 96
                     $this->queryByArgs($query, $value);
97 97
                 });
98 98
             } else {
Please login to merge, or discard this patch.
src/Queries/EloquentCollectionQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             $args->put('search', $this->registry->type($this->modelSchema->typename().'RootSearch')->nullable());
67 67
         }
68 68
 
69
-        if (! empty($this->modelSchema->getFields())) {
69
+        if (!empty($this->modelSchema->getFields())) {
70 70
             $args->put('orderBy', $this->registry->type($this->modelSchema->typename().'OrderBy')->nullable());
71 71
         }
72 72
 
Please login to merge, or discard this patch.
src/Fields/PolymorphicField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     public function getModelSchemaByKey(string $key)
55 55
     {
56
-        return collect($this->modelSchemas)->first(function ($definition) use ($key) {
56
+        return collect($this->modelSchemas)->first(function($definition) use ($key) {
57 57
             return Utils::single(resolve($definition)->getModel()) === $key;
58 58
         });
59 59
     }
Please login to merge, or discard this patch.
src/Fields/Field.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
         $args = new Arguments($args);
515 515
 
516 516
         if (isset($this->viewPolicy)) {
517
-            if (! $this->authorizeToRead($root, $info->fieldName)) {
517
+            if (!$this->authorizeToRead($root, $info->fieldName)) {
518 518
                 return null;
519 519
             }
520 520
         }
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
         $policy = $this->viewPolicy;
556 556
 
557 557
         // Check if there is a policy.
558
-        if (! $policy) {
558
+        if (!$policy) {
559 559
             return true;
560 560
         }
561 561
 
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
         $policy = $this->storePolicy;
607 607
 
608 608
         // Check if there is a policy.
609
-        if (! $policy) {
609
+        if (!$policy) {
610 610
             return true;
611 611
         }
612 612
 
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
     {
633 633
         return [
634 634
             'type' => $this->getType()->toType(),
635
-            'args' => collect($this->getArgs())->map(function (RootType $type) {
635
+            'args' => collect($this->getArgs())->map(function(RootType $type) {
636 636
                 return $type->toType();
637 637
             })->toArray(),
638 638
             'resolve' => [$this, 'resolveField'],
Please login to merge, or discard this patch.
src/Eloquent/Traits/BakeryTransactionalAware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public static function bootBakeryTransactionalAware()
27 27
     {
28
-        Event::listen('eloquent.booted: '.static::class, function (Model $model) {
28
+        Event::listen('eloquent.booted: '.static::class, function(Model $model) {
29 29
             $model->addObservableEvents(['persisting', 'persisted']);
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
src/Eloquent/Concerns/MutatesModel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function create(array $input = []): Model
62 62
     {
63
-        return $this->transaction(function () use ($input) {
63
+        return $this->transaction(function() use ($input) {
64 64
             $this->make($input);
65 65
             $this->save();
66 66
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function createIfAuthorized(array $input = []): Model
78 78
     {
79
-        return $this->transaction(function () use ($input) {
79
+        return $this->transaction(function() use ($input) {
80 80
             $this->create($input);
81 81
             $this->authorizeToCreate();
82 82
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     public function update(array $input = []): Model
107 107
     {
108
-        return $this->transaction(function () use ($input) {
108
+        return $this->transaction(function() use ($input) {
109 109
             $this->fill($input);
110 110
             $this->save();
111 111
 
Please login to merge, or discard this patch.