@@ -33,17 +33,17 @@ discard block |
||
33 | 33 | { |
34 | 34 | $cfg = $this->getConfigs(); |
35 | 35 | // check cache is defined |
36 | - if (!$this->cache|| !Any::isInt($this->cache)) { |
|
37 | - $this->cache = (int)$cfg['cache']; |
|
36 | + if (!$this->cache || !Any::isInt($this->cache)) { |
|
37 | + $this->cache = (int) $cfg['cache']; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | // check tag count is defined |
41 | 41 | if (!$this->count || !Any::isInt($this->count)) { |
42 | - $this->count = (int)$cfg['count']; |
|
42 | + $this->count = (int) $cfg['count']; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | $this->_lang = App::$Request->getLanguage(); |
46 | - $this->_cacheName = 'widget.contenttag.' . $this->createStringClassSnapshotHash(); |
|
46 | + $this->_cacheName = 'widget.contenttag.'.$this->createStringClassSnapshotHash(); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } else { |
61 | 61 | $cache = App::$Cache->getItem($this->_cacheName); |
62 | 62 | if (!$cache->isHit()) { |
63 | - $cache->set($this->makeQuery())->expiresAfter((int)$this->cache); |
|
63 | + $cache->set($this->makeQuery())->expiresAfter((int) $this->cache); |
|
64 | 64 | App::$Cache->save($cache); |
65 | 65 | } |
66 | 66 | $records = $cache->get(); |