@@ -9,7 +9,7 @@ |
||
| 9 | 9 | define('env_name', 'Install'); |
| 10 | 10 | define('env_type', 'html'); |
| 11 | 11 | |
| 12 | -require_once(root . '/Loader/Autoload.php'); |
|
| 12 | +require_once(root.'/Loader/Autoload.php'); |
|
| 13 | 13 | |
| 14 | 14 | // make fast-access alias \App::$Object |
| 15 | 15 | // class_alias('Ffcms\Core\App', 'App'); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | if (!$this->cache) { |
| 43 | - $this->cache = (int)$cfg['cache']; |
|
| 43 | + $this->cache = (int) $cfg['cache']; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | if (!$this->lang) { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | |
| 51 | - $this->_cacheName = 'widget.newcomment.' . $this->createStringClassSnapshotHash(); |
|
| 51 | + $this->_cacheName = 'widget.newcomment.'.$this->createStringClassSnapshotHash(); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | { |
| 63 | 63 | // work with cache and make query |
| 64 | 64 | $records = null; |
| 65 | - if ((int)$this->cache > 0) { |
|
| 65 | + if ((int) $this->cache > 0) { |
|
| 66 | 66 | // process caching data |
| 67 | 67 | $cache = App::$Cache->getItem($this->_cacheName); |
| 68 | 68 | if (!$cache->isHit()) { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | parent::init(); |
| 22 | 22 | |
| 23 | 23 | if (App::$Request->getLanguage() !== 'en') { |
| 24 | - App::$Translate->append('/I18n/Front/' . App::$Request->getLanguage() . '/CommentWidget.php'); |
|
| 24 | + App::$Translate->append('/I18n/Front/'.App::$Request->getLanguage().'/CommentWidget.php'); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | if ($this->pathway === null) { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | /** @var $notify array */ |
| 3 | 3 | |
| 4 | 4 | use Ffcms\Core\Helper\Type\Any; |
| 5 | -use Ffcms\Core\Helper\Type\Obj; |
|
| 6 | 5 | |
| 7 | 6 | /** |
| 8 | 7 | * Get html css class from notify response type |
@@ -31,9 +31,9 @@ |
||
| 31 | 31 | if (Any::isArray($notify) && count($notify) > 0) { |
| 32 | 32 | foreach ($notify as $type => $messages) { |
| 33 | 33 | foreach ($messages as $message) { |
| 34 | - echo '<p class="alert ' . type2html($type) . '"> |
|
| 34 | + echo '<p class="alert '.type2html($type).'"> |
|
| 35 | 35 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>' |
| 36 | - . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>'; |
|
| 36 | + . \Ffcms\Core\App::$Security->strip_tags($message).'</p>'; |
|
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | } |
@@ -30,10 +30,10 @@ |
||
| 30 | 30 | /** @var array $cfg */ |
| 31 | 31 | $cfg = $this->application->configs; |
| 32 | 32 | // get pagination page id and calc offset |
| 33 | - $page = (int)$this->request->query->get('page'); |
|
| 33 | + $page = (int) $this->request->query->get('page'); |
|
| 34 | 34 | $items = 10; |
| 35 | - if ((int)$cfg['wallPostOnFeed'] >= 1) { |
|
| 36 | - $items = (int)$cfg['wallPostOnFeed']; |
|
| 35 | + if ((int) $cfg['wallPostOnFeed'] >= 1) { |
|
| 36 | + $items = (int) $cfg['wallPostOnFeed']; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $offset = $page * $items; |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $wallModel = new FormWallPostDelete($wallPost); |
| 58 | 58 | if ($wallModel->send() && $wallModel->validate()) { |
| 59 | 59 | $wallModel->make(); |
| 60 | - $this->response->redirect('profile/show/' . $wallPost->target_id); |
|
| 60 | + $this->response->redirect('profile/show/'.$wallPost->target_id); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | return $this->view->render('wall_delete', [ |
@@ -31,9 +31,9 @@ |
||
| 31 | 31 | if (Any::isArray($notify) && count($notify) > 0) { |
| 32 | 32 | foreach ($notify as $type => $messages) { |
| 33 | 33 | foreach ($messages as $message) { |
| 34 | - echo '<p class="alert ' . type2html($type) . '"> |
|
| 34 | + echo '<p class="alert '.type2html($type).'"> |
|
| 35 | 35 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>' |
| 36 | - . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>'; |
|
| 36 | + . \Ffcms\Core\App::$Security->strip_tags($message).'</p>'; |
|
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | } |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | // build sitemap from content items via business model |
| 159 | 159 | $sitemap = new EntityBuildMap($langs); |
| 160 | 160 | foreach ($profiles->get() as $user) { |
| 161 | - $sitemap->add('profile/show/' . $user->user_id, $user->updated_at, 'weekly', 0.2); |
|
| 161 | + $sitemap->add('profile/show/'.$user->user_id, $user->updated_at, 'weekly', 0.2); |
|
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | try { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | // get page index and current user object |
| 43 | - $page = (int)$this->request->query->get('page', 0); |
|
| 43 | + $page = (int) $this->request->query->get('page', 0); |
|
| 44 | 44 | $offset = $page * static::NOTIFY_PER_PAGE; |
| 45 | 45 | $user = App::$User->identity(); |
| 46 | 46 | |