@@ -146,12 +146,14 @@ |
||
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | public function applyCriteria() { |
| 149 | - if ($this->skipCriteria === true) |
|
| 150 | - return $this; |
|
| 149 | + if ($this->skipCriteria === true) { |
|
| 150 | + return $this; |
|
| 151 | + } |
|
| 151 | 152 | |
| 152 | 153 | foreach ($this->getCriteria() as $criteria) { |
| 153 | - if ($criteria instanceof Criteria) |
|
| 154 | - $this->model = $criteria->apply($this->model, $this); |
|
| 154 | + if ($criteria instanceof Criteria) { |
|
| 155 | + $this->model = $criteria->apply($this->model, $this); |
|
| 156 | + } |
|
| 155 | 157 | } |
| 156 | 158 | |
| 157 | 159 | return $this; |