@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | ]; |
58 | 58 | |
59 | 59 | // check if this category is hidden |
60 | - if ((int)$this->categoryData['configs']['showCategory'] !== 1) { |
|
60 | + if ((int) $this->categoryData['configs']['showCategory'] !== 1) { |
|
61 | 61 | throw new ForbiddenException(); |
62 | 62 | } |
63 | 63 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | // find first paragraph ending |
83 | 83 | $breakPosition = mb_strpos($text, '</p>', null, 'UTF-8'); |
84 | 84 | // cut text from position caret before </p> (+4 symbols to save item as valid) |
85 | - $text = Str::sub($text, 0, $breakPosition+4); |
|
85 | + $text = Str::sub($text, 0, $breakPosition + 4); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | $itemPath = $this->_allCategories[$row->category_id]['path']; |
@@ -135,8 +135,8 @@ discard block |
||
135 | 135 | 'author' => $owner, |
136 | 136 | 'poster' => $poster, |
137 | 137 | 'thumb' => $thumb, |
138 | - 'views' => (int)$row->views, |
|
139 | - 'rating' => (int)$row->rating, |
|
138 | + 'views' => (int) $row->views, |
|
139 | + 'rating' => (int) $row->rating, |
|
140 | 140 | 'category' => $this->_allCategories[$row->category_id], |
141 | 141 | 'uri' => '/content/read/' . $itemPath, |
142 | 142 | 'tags' => $tags |