| @@ 34-36 (lines=3) @@ | ||
| 31 | $this->categories = Serialize::decode($cfg['categories']); |
|
| 32 | } |
|
| 33 | // check cache is defined |
|
| 34 | if ($this->cache === null || !Obj::isLikeInt($this->cache)) { |
|
| 35 | $this->cache = (int)$cfg['cache']; |
|
| 36 | } |
|
| 37 | // check item count is defined |
|
| 38 | if ($this->count === null || !Obj::isLikeInt($this->count)) { |
|
| 39 | $this->count = (int)$cfg['count']; |
|
| @@ 38-40 (lines=3) @@ | ||
| 35 | $this->cache = (int)$cfg['cache']; |
|
| 36 | } |
|
| 37 | // check item count is defined |
|
| 38 | if ($this->count === null || !Obj::isLikeInt($this->count)) { |
|
| 39 | $this->count = (int)$cfg['count']; |
|
| 40 | } |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| @@ 24-26 (lines=3) @@ | ||
| 21 | { |
|
| 22 | $cfg = $this->getConfigs(); |
|
| 23 | // check cache is defined |
|
| 24 | if ($this->cache === null || !Obj::isLikeInt($this->cache)) { |
|
| 25 | $this->cache = (int)$cfg['cache']; |
|
| 26 | } |
|
| 27 | // check tag count is defined |
|
| 28 | if ($this->count === null || !Obj::isLikeInt($this->count)) { |
|
| 29 | $this->count = (int)$cfg['count']; |
|
| @@ 28-30 (lines=3) @@ | ||
| 25 | $this->cache = (int)$cfg['cache']; |
|
| 26 | } |
|
| 27 | // check tag count is defined |
|
| 28 | if ($this->count === null || !Obj::isLikeInt($this->count)) { |
|
| 29 | $this->count = (int)$cfg['count']; |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| 33 | public function display() |
|