@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $this->cache = $cfg['cache']; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - $this->_cacheName = 'widget.newcomment.' . $this->createStringClassSnapshotHash(); |
|
| 42 | + $this->_cacheName = 'widget.newcomment.'.$this->createStringClassSnapshotHash(); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | // work with cache and make query |
| 55 | 55 | $records = null; |
| 56 | - if ((int)$this->cache > 0) { |
|
| 56 | + if ((int) $this->cache > 0) { |
|
| 57 | 57 | if (App::$Cache->get($this->_cacheName) !== null) { |
| 58 | 58 | $records = App::$Cache->get($this->_cacheName); |
| 59 | 59 | } else { |
@@ -30,15 +30,15 @@ |
||
| 30 | 30 | $cfg = $this->getConfigs(); |
| 31 | 31 | // check cache is defined |
| 32 | 32 | if ($this->cache === null || !Obj::isLikeInt($this->cache)) { |
| 33 | - $this->cache = (int)$cfg['cache']; |
|
| 33 | + $this->cache = (int) $cfg['cache']; |
|
| 34 | 34 | } |
| 35 | 35 | // check tag count is defined |
| 36 | 36 | if ($this->count === null || !Obj::isLikeInt($this->count)) { |
| 37 | - $this->count = (int)$cfg['count']; |
|
| 37 | + $this->count = (int) $cfg['count']; |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | $this->_lang = App::$Request->getLanguage(); |
| 41 | - $this->_cacheName = 'widget.contenttag.' . $this->createStringClassSnapshotHash(); |
|
| 41 | + $this->_cacheName = 'widget.contenttag.'.$this->createStringClassSnapshotHash(); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
@@ -34,14 +34,14 @@ |
||
| 34 | 34 | } |
| 35 | 35 | // check cache is defined |
| 36 | 36 | if ($this->cache === null || !Obj::isLikeInt($this->cache)) { |
| 37 | - $this->cache = (int)$cfg['cache']; |
|
| 37 | + $this->cache = (int) $cfg['cache']; |
|
| 38 | 38 | } |
| 39 | 39 | // check item count is defined |
| 40 | 40 | if ($this->count === null || !Obj::isLikeInt($this->count)) { |
| 41 | - $this->count = (int)$cfg['count']; |
|
| 41 | + $this->count = (int) $cfg['count']; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - $this->_cacheName = 'widget.newcontent.' . $this->createStringClassSnapshotHash(); |
|
| 44 | + $this->_cacheName = 'widget.newcontent.'.$this->createStringClassSnapshotHash(); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | /** set default locale */ |
| 15 | 15 | $_GET['lang'] = 'en'; |
| 16 | 16 | |
| 17 | -require_once(root . '/Loader/Autoload.php'); |
|
| 17 | +require_once(root.'/Loader/Autoload.php'); |
|
| 18 | 18 | |
| 19 | 19 | // make fast-access alias \App::$Object |
| 20 | 20 | // class_alias('Ffcms\Core\App', 'App'); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $cronManager = new \Ffcms\Core\Managers\CronManager(\App::$Properties->getAll('Cron')); |
| 42 | 42 | $logs = $cronManager->run(); |
| 43 | 43 | if ($logs !== null && \Ffcms\Core\Helper\Type\Obj::isArray($logs) && count($logs) > 0) { |
| 44 | - echo 'Run cron tasks: ' . PHP_EOL . implode(PHP_EOL, $logs); |
|
| 44 | + echo 'Run cron tasks: '.PHP_EOL.implode(PHP_EOL, $logs); |
|
| 45 | 45 | } else { |
| 46 | 46 | echo 'No tasks runned'; |
| 47 | 47 | } |