Test Setup Failed
Push — master ( d71b5a...3d6544 )
by noitran
05:59
created
src/Criteria/FilterBy.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.