@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | protected $pageCount = 20; |
| 39 | 39 | protected $paginated = true; |
| 40 | - protected static $booted = []; |
|
| 40 | + protected static $booted = []; |
|
| 41 | 41 | |
| 42 | 42 | public function __construct(Registration $registration) |
| 43 | 43 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 291 | 291 | static::$booted[$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::$booted[$baseMethod])) { |
|
| 296 | + if (method_exists($class, $method) && !in_array($method, static::$booted[$baseMethod])) { |
|
| 297 | 297 | static::$booted[$baseMethod][] = lcfirst($method); |
| 298 | 298 | } |
| 299 | 299 | } |