@@ -14,27 +14,27 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | use OopTools; |
| 16 | 16 | |
| 17 | - public $snippet; |
|
| 18 | - public $count; |
|
| 19 | - public $cache; |
|
| 17 | + public $snippet; |
|
| 18 | + public $count; |
|
| 19 | + public $cache; |
|
| 20 | 20 | |
| 21 | - /** |
|
| 22 | - * Set default configs if not passed |
|
| 23 | - * {@inheritDoc} |
|
| 24 | - * @see \Ffcms\Core\Arch\Widget::init() |
|
| 25 | - */ |
|
| 21 | + /** |
|
| 22 | + * Set default configs if not passed |
|
| 23 | + * {@inheritDoc} |
|
| 24 | + * @see \Ffcms\Core\Arch\Widget::init() |
|
| 25 | + */ |
|
| 26 | 26 | public function init() |
| 27 | 27 | { |
| 28 | - $cfg = $this->getConfigs(); |
|
| 29 | - if ($this->snippet === null) { |
|
| 30 | - $this->snippet = $cfg['snippet']; |
|
| 31 | - } |
|
| 32 | - if ($this->count === null) { |
|
| 33 | - $this->count = $cfg['count']; |
|
| 34 | - } |
|
| 35 | - if ($this->cache === null) { |
|
| 36 | - $this->cache = $cfg['cache']; |
|
| 37 | - } |
|
| 28 | + $cfg = $this->getConfigs(); |
|
| 29 | + if ($this->snippet === null) { |
|
| 30 | + $this->snippet = $cfg['snippet']; |
|
| 31 | + } |
|
| 32 | + if ($this->count === null) { |
|
| 33 | + $this->count = $cfg['count']; |
|
| 34 | + } |
|
| 35 | + if ($this->cache === null) { |
|
| 36 | + $this->cache = $cfg['cache']; |
|
| 37 | + } |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -63,10 +63,10 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | // render view |
| 66 | - return App::$View->render('widgets/newcomment/default', [ |
|
| 67 | - 'records' => $records, |
|
| 68 | - 'snippet' => $this->snippet |
|
| 69 | - ]); |
|
| 66 | + return App::$View->render('widgets/newcomment/default', [ |
|
| 67 | + 'records' => $records, |
|
| 68 | + 'snippet' => $this->snippet |
|
| 69 | + ]); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |