@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | $redisKey = "{$this->getCacheNamespace()}{$id}:{$this->getType()}"; |
| 27 | 27 | |
| 28 | - if (! empty($this->getMetrics())) { |
|
| 28 | + if (!empty($this->getMetrics())) { |
|
| 29 | 29 | foreach ($this->getMetrics() as $metric) { |
| 30 | 30 | $redisKey .= ":{$metric['col']}{$op}{$metric['value']}"; |
| 31 | 31 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | 'value' => $id |
| 42 | 42 | ]); |
| 43 | 43 | |
| 44 | - if (! empty($this->getMetrics())) { |
|
| 44 | + if (!empty($this->getMetrics())) { |
|
| 45 | 45 | foreach ($this->getMetrics() as $metric) { |
| 46 | 46 | $op = (isset($metric['op']) ? $metric['op'] : '='); |
| 47 | 47 | $queryObject->addWhere([ |
@@ -65,10 +65,10 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function setMetrics($metric) |
| 67 | 67 | { |
| 68 | - if (! empty($metric)) { |
|
| 68 | + if (!empty($metric)) { |
|
| 69 | 69 | // Don't allow setting if the proper data isn't there. |
| 70 | 70 | // Prevents and kind of errors later on. |
| 71 | - if (! empty($metric['col']) && ! empty($metric['value'])) { |
|
| 71 | + if (!empty($metric['col']) && !empty($metric['value'])) { |
|
| 72 | 72 | $this->metrics[] = $metric; |
| 73 | 73 | } |
| 74 | 74 | } |