@@ -9,4 +9,4 @@ |
||
| 9 | 9 | ['type' => 'link', 'text' => __('Group management'), 'link' => ['user/grouplist']], |
| 10 | 10 | ['type' => 'link', 'text' => __('Settings'), 'link' => ['user/settings']] |
| 11 | 11 | ] |
| 12 | -]);?> |
|
| 13 | 12 | \ No newline at end of file |
| 13 | +]); ?> |
|
| 14 | 14 | \ No newline at end of file |
@@ -40,8 +40,8 @@ discard block |
||
| 40 | 40 | { |
| 41 | 41 | $path = App::$Request->getPathWithoutControllerAction(); |
| 42 | 42 | $configs = $this->getConfigs(); |
| 43 | - $page = (int)App::$Request->query->get('page'); |
|
| 44 | - $itemCount = (int)$configs['itemPerCategory']; |
|
| 43 | + $page = (int) App::$Request->query->get('page'); |
|
| 44 | + $itemCount = (int) $configs['itemPerCategory']; |
|
| 45 | 45 | |
| 46 | 46 | // build special model with content list and category list information |
| 47 | 47 | $model = new EntityCategoryList($path, $configs, $page); |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | { |
| 128 | 128 | $configs = $this->getConfigs(); |
| 129 | 129 | // check if tags is enabled |
| 130 | - if ((int)$configs['keywordsAsTags'] !== 1) { |
|
| 130 | + if ((int) $configs['keywordsAsTags'] !== 1) { |
|
| 131 | 131 | throw new NotFoundException(__('Tag system is disabled')); |
| 132 | 132 | } |
| 133 | 133 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | { |
| 52 | 52 | $this->_path = $path; |
| 53 | 53 | $this->_configs = $configs; |
| 54 | - $this->_page = (int)$offset; |
|
| 54 | + $this->_page = (int) $offset; |
|
| 55 | 55 | parent::__construct(); |
| 56 | 56 | } |
| 57 | 57 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | public function before() |
| 64 | 64 | { |
| 65 | 65 | // find one or more categories where we must looking for content items |
| 66 | - if ((int)$this->_configs['multiCategories'] === 1) { |
|
| 66 | + if ((int) $this->_configs['multiCategories'] === 1) { |
|
| 67 | 67 | $this->findCategories(); |
| 68 | 68 | } else { |
| 69 | 69 | $this->findCategory(); |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | // calculate selection offset |
| 136 | - $itemPerPage = (int)$this->_configs['itemPerCategory']; |
|
| 136 | + $itemPerPage = (int) $this->_configs['itemPerCategory']; |
|
| 137 | 137 | if ($itemPerPage < 1) { |
| 138 | 138 | $itemPerPage = 1; |
| 139 | 139 | } |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | ]; |
| 167 | 167 | |
| 168 | 168 | // check if this category is hidden |
| 169 | - if ((int)$this->category['configs']['showCategory'] !== 1) { |
|
| 169 | + if ((int) $this->category['configs']['showCategory'] !== 1) { |
|
| 170 | 170 | throw new ForbiddenException(__('This category is not available to view')); |
| 171 | 171 | } |
| 172 | 172 | |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | // find first paragraph ending |
| 189 | 189 | $breakPosition = mb_strpos($text, '</p>', null, 'UTF-8'); |
| 190 | 190 | // cut text from position caret before </p> (+4 symbols to save item as valid) |
| 191 | - $text = Str::sub($text, 0, $breakPosition+4); |
|
| 191 | + $text = Str::sub($text, 0, $breakPosition + 4); |
|
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | $itemPath = $this->categories[$row->category_id]->path; |
@@ -242,8 +242,8 @@ discard block |
||
| 242 | 242 | 'author' => $owner, |
| 243 | 243 | 'poster' => $poster, |
| 244 | 244 | 'thumb' => $thumb, |
| 245 | - 'views' => (int)$row->views, |
|
| 246 | - 'rating' => (int)$row->rating, |
|
| 245 | + 'views' => (int) $row->views, |
|
| 246 | + 'rating' => (int) $row->rating, |
|
| 247 | 247 | 'category' => $this->categories[$row->category_id], |
| 248 | 248 | 'uri' => '/content/read/' . $itemPath, |
| 249 | 249 | 'tags' => $tags |