@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function apply($model, RepositoryInterface $repository) //: Builder |
| 51 | 51 | { |
| 52 | - if (empty($this->attributes) || ! is_array($this->attributes)) { |
|
| 52 | + if (empty($this->attributes) || !is_array($this->attributes)) { |
|
| 53 | 53 | return $model; |
| 54 | 54 | } |
| 55 | 55 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $relation = $queryModel->getRelation(); |
| 74 | 74 | |
| 75 | - if ($relation && ! $this->modelHasRelation($builderModel->getModel(), $relation)) { |
|
| 75 | + if ($relation && !$this->modelHasRelation($builderModel->getModel(), $relation)) { |
|
| 76 | 76 | throw new RepositoryException('Trying to filter by non existent relation.'); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | if ($relation) { |
| 85 | 85 | $builderModel = $builderModel->whereHas( |
| 86 | 86 | $relation, |
| 87 | - function ($query) use ($column, $dataType, $expression, $valueToSearch): void { |
|
| 87 | + function($query) use ($column, $dataType, $expression, $valueToSearch): void { |
|
| 88 | 88 | $this->applyDataTypeFilter($query, $column, $dataType, $expression, $valueToSearch); |
| 89 | 89 | } |
| 90 | 90 | ); |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | $namespace = 'Noitran\Repositories\Criteria\Support\\'; |
| 126 | 126 | $criteria = $namespace . ucfirst($dataType) . 'Criteria'; |
| 127 | 127 | |
| 128 | - if (! class_exists($criteria)) { |
|
| 128 | + if (!class_exists($criteria)) { |
|
| 129 | 129 | $defaultCriteria = $namespace . 'DefaultCriteria'; |
| 130 | 130 | |
| 131 | 131 | return new $defaultCriteria(); |