@@ -24,7 +24,7 @@ |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public function getCacheMode() { |
| 27 | - return (int) ($this->options['cachemode'] ?? 0); |
|
| 27 | + return (int)($this->options['cachemode'] ?? 0); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function read($option) { |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | |
| 128 | 128 | public function updateCache($data, $pkValue) { |
| 129 | 129 | if ($this->cacheMode >= 0) { |
| 130 | - if (isset($this->cache[$pkValue])) $this->cache[$pkValue] = (object) array_merge((array)$this->cache[$pkValue], (array)$data); |
|
| 130 | + if (isset($this->cache[$pkValue])) $this->cache[$pkValue] = (object)array_merge((array)$this->cache[$pkValue], (array)$data); |
|
| 131 | 131 | else $this->cache[$pkValue] = $data; |
| 132 | 132 | } |
| 133 | 133 | } |