@@ -22,11 +22,11 @@ discard block |
||
| 22 | 22 | $cfg = $this->getConfigs(); |
| 23 | 23 | // check cache is defined |
| 24 | 24 | if ($this->cache === null || !Obj::isLikeInt($this->cache)) { |
| 25 | - $this->cache = (int)$cfg['cache']; |
|
| 25 | + $this->cache = (int) $cfg['cache']; |
|
| 26 | 26 | } |
| 27 | 27 | // check tag count is defined |
| 28 | 28 | if ($this->count === null || !Obj::isLikeInt($this->count)) { |
| 29 | - $this->count = (int)$cfg['count']; |
|
| 29 | + $this->count = (int) $cfg['count']; |
|
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | |
@@ -40,10 +40,10 @@ discard block |
||
| 40 | 40 | if ($this->cache === 0) { |
| 41 | 41 | $records = $this->makeQuery(); |
| 42 | 42 | } else { |
| 43 | - $records === App::$Cache->get('widget.contenttag.' . $classHash); |
|
| 43 | + $records === App::$Cache->get('widget.contenttag.'.$classHash); |
|
| 44 | 44 | if ($records === null) { |
| 45 | 45 | $records = $this->makeQuery(); |
| 46 | - App::$Cache->set('widget.contenttag' . $classHash, $records, $this->cache); |
|
| 46 | + App::$Cache->set('widget.contenttag'.$classHash, $records, $this->cache); |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
@@ -5,5 +5,5 @@ |
||
| 5 | 5 | ?> |
| 6 | 6 | |
| 7 | 7 | <?php foreach ($records as $row) { |
| 8 | - echo Url::link(['content/tag', $row['tag']], $row['tag'], ['class' => 'label label-default']) . ' '; |
|
| 8 | + echo Url::link(['content/tag', $row['tag']], $row['tag'], ['class' => 'label label-default']).' '; |
|
| 9 | 9 | } |
| 10 | 10 | \ No newline at end of file |
@@ -26,8 +26,8 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function before() |
| 28 | 28 | { |
| 29 | - $this->count = (int)$this->_configs['count']; |
|
| 30 | - $this->cache = (int)$this->_configs['cache']; |
|
| 29 | + $this->count = (int) $this->_configs['count']; |
|
| 30 | + $this->cache = (int) $this->_configs['cache']; |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |