Passed
Push — master ( abbdf0...a7111d )
by Mihail
04:54
created
Apps/Model/Front/Content/EntityCategoryRead.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.