@@ -48,7 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | foreach (class_uses_recursive($class) as $trait) { |
| 50 | 50 | $method = $buildFunctionName(class_basename($trait)); |
| 51 | - if (method_exists($class, $method) && ! in_array($method, $booted)) { |
|
| 51 | + if (method_exists($class, $method) && !in_array($method, $booted)) { |
|
| 52 | 52 | $booted[] = $method; |
| 53 | 53 | } |
| 54 | 54 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | protected function getSoftDeletesDefaultBindings(): array |
| 35 | 35 | { |
| 36 | - if (! $this->isTrashFilterActivated()) { |
|
| 36 | + if (!$this->isTrashFilterActivated()) { |
|
| 37 | 37 | return []; |
| 38 | 38 | } |
| 39 | 39 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | public function getConstraint(string $key, string $q): Constraint |
| 16 | 16 | { |
| 17 | 17 | $constraints = $this->getAvailableConstraints()->all(); |
| 18 | - if (! Arr::has($constraints, $key)) { |
|
| 18 | + if (!Arr::has($constraints, $key)) { |
|
| 19 | 19 | throw new InvalidArgumentException("The requested index was not found: {$key}"); |
| 20 | 20 | } |
| 21 | 21 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | { |
| 39 | 39 | $builder = $closure($this->builder); |
| 40 | 40 | |
| 41 | - if (! $builder instanceof Builder) { |
|
| 41 | + if (!$builder instanceof Builder) { |
|
| 42 | 42 | throw new UnexpectedValueException("Attachment must be an instance of " . Builder::class); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | private function dumpBindingsTo(Builder &$builder, array $bindings): void |
| 49 | 49 | { |
| 50 | 50 | foreach ($bindings as $binding) { |
| 51 | - if (! $binding instanceof Binding) { |
|
| 51 | + if (!$binding instanceof Binding) { |
|
| 52 | 52 | throw new UnexpectedValueException("Bindings must be an instance of " . Binding::class); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | private function setBindingTo(Binding $binding, Builder $builder): void |
| 60 | 60 | { |
| 61 | - if (! $binding->isNamed()) { |
|
| 61 | + if (!$binding->isNamed()) { |
|
| 62 | 62 | $this->applyConstraints($builder, $binding->getConstraints()); |
| 63 | 63 | } else { |
| 64 | 64 | $builder->withGlobalScope($binding->getName(), fn(Builder $eloquent |