Passed
Push — master ( 72cb54...ce8977 )
by Philippe
02:38 queued 14s
created
src/Fields/Types/Field.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Thinktomorrow\Chief\Fields\Types;
6 6
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function optional(): bool
73 73
     {
74
-        return ! $this->required();
74
+        return !$this->required();
75 75
     }
76 76
 
77 77
     public function name(string $name = null)
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
     private function defaultValueResolver(): callable
148 148
     {
149
-        return function (Model $model, $locale) {
149
+        return function(Model $model, $locale) {
150 150
             if ($this->isTranslatable() && $locale) {
151 151
                 return $model->getTranslationFor($this->column(), $locale);
152 152
             }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         }
215 215
 
216 216
         if (!in_array($name, ['label', 'key', 'description', 'column', 'name', 'prepend', 'append'])) {
217
-            throw new \InvalidArgumentException('Cannot set value by ['. $name .'].');
217
+            throw new \InvalidArgumentException('Cannot set value by ['.$name.'].');
218 218
         }
219 219
 
220 220
         $this->values[$name] = $arguments[0];
Please login to merge, or discard this patch.
src/Management/AbstractManager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             return $this->indexPagination($builder);
85 85
         }
86 86
         
87
-        return $builder->get()->map(function ($model) {
87
+        return $builder->get()->map(function($model) {
88 88
             return (new static($this->registration))->manage($model);
89 89
         });
90 90
     }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     {
113 113
         $paginator = $builder->paginate($this->pageCount);
114 114
 
115
-        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function ($model) {
115
+        $modifiedCollection = $builder->paginate($this->pageCount)->getCollection()->transform(function($model) {
116 116
             return (new static($this->registration))->manage($model);
117 117
         });
118 118
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
     public function guard($verb): Manager
188 188
     {
189
-        if (! $this->can($verb)) {
189
+        if (!$this->can($verb)) {
190 190
             NotAllowedManagerRoute::notAllowedVerb($verb, $this);
191 191
         }
192 192
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
         $fields = $this->fields();
210 210
 
211 211
         foreach ($this->assistants() as $assistant) {
212
-            if (! method_exists($assistant, 'fields')) {
212
+            if (!method_exists($assistant, 'fields')) {
213 213
                 continue;
214 214
             }
215 215
 
@@ -291,9 +291,9 @@  discard block
 block discarded – undo
291 291
             static::$bootedTraitMethods[$baseMethod] = [];
292 292
         
293 293
             foreach (class_uses_recursive($class) as $trait) {
294
-                $method = class_basename($trait) . ucfirst($baseMethod);
294
+                $method = class_basename($trait).ucfirst($baseMethod);
295 295
                 
296
-                if (method_exists($class, $method) && ! in_array($method, static::$bootedTraitMethods[$baseMethod])) {
296
+                if (method_exists($class, $method) && !in_array($method, static::$bootedTraitMethods[$baseMethod])) {
297 297
                     static::$bootedTraitMethods[$baseMethod][] = lcfirst($method);
298 298
                 }
299 299
             }
Please login to merge, or discard this patch.