Passed
Push — master ( 37fbce...eb9638 )
by Mihail
09:07
created
Apps/ActiveRecord/ContentCategory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     /**
13 13
      * Get record via category path address
14 14
      * @param string $path
15
-     * @return self|object|null
15
+     * @return ContentCategory
16 16
      */
17 17
     public static function getByPath($path = '')
18 18
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             } else {
72 72
                 // set level marker based on slashes count in pathway
73 73
                 $slashCount = Str::entryCount($path, '/');
74
-                for ($i=-1; $i <= $slashCount; $i++) {
74
+                for ($i = -1; $i <= $slashCount; $i++) {
75 75
                     $title .= '--';
76 76
                 }
77 77
             }
Please login to merge, or discard this patch.
Apps/ActiveRecord/Role.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Ffcms\Core\App as MainApp;
6 6
 use Ffcms\Core\Arch\ActiveModel;
7 7
 use Ffcms\Core\Helper\Type\Arr;
8
-use Ffcms\Core\Helper\Type\Str;
9 8
 
10 9
 class Role extends ActiveModel
11 10
 {
Please login to merge, or discard this patch.
Apps/Controller/Admin/Main.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Ffcms\Core\App;
10 10
 use Ffcms\Core\Exception\SyntaxException;
11 11
 use Ffcms\Core\Helper\FileSystem\File;
12
-use Ffcms\Core\Helper\Type\Arr;
13 12
 use Ffcms\Core\Helper\Type\Integer;
14 13
 use Ffcms\Core\Helper\Type\Str;
15 14
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,9 +117,9 @@
 block discarded – undo
117 117
      */
118 118
     public function actionDeleteroute()
119 119
     {
120
-        $type = (string)App::$Request->query->get('type');
121
-        $loader = (string)App::$Request->query->get('loader');
122
-        $source = Str::lowerCase((string)App::$Request->query->get('path'));
120
+        $type = (string) App::$Request->query->get('type');
121
+        $loader = (string) App::$Request->query->get('loader');
122
+        $source = Str::lowerCase((string) App::$Request->query->get('path'));
123 123
 
124 124
         $model = new EntityDeleteRoute($type, $loader, $source);
125 125
         if ($model->send()) {
Please login to merge, or discard this patch.
Apps/Controller/Front/Main.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Extend\Core\Arch\FrontAppController;
6 6
 use Ffcms\Core\Arch\View;
7
-use Apps\Model\Front\User;
8 7
 
9 8
 
10 9
 class Main extends FrontAppController
Please login to merge, or discard this patch.
Apps/Model/Admin/Content/FormContentUpdate.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Ffcms\Core\Helper\Date;
10 10
 use Ffcms\Core\Helper\FileSystem\Directory;
11 11
 use Ffcms\Core\Helper\FileSystem\File;
12
-use Ffcms\Core\Helper\Type\Integer;
13 12
 use Ffcms\Core\Helper\Type\Obj;
14 13
 use Ffcms\Core\Helper\Serialize;
15 14
 use Ffcms\Core\Helper\Type\Str;
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     }
44 44
 
45 45
     /**
46
-    * Set model properties from active record data
47
-    */
46
+     * Set model properties from active record data
47
+     */
48 48
     public function before()
49 49
     {
50 50
         // is new item?
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
     }
106 106
 
107 107
     /**
108
-    * Labels
109
-    */
108
+     * Labels
109
+     */
110 110
     public function labels()
111 111
     {
112 112
         return [
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function rules()
83 83
     {
84
-        $res =  [
84
+        $res = [
85 85
             ['title.' . App::$Request->getLanguage(), 'required'],
86 86
             ['text.' . App::$Request->getLanguage(), 'required', null, true, true],
87 87
             ['text', 'used', null, true, true],
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
         $this->_content->meta_description = Serialize::encode(App::$Security->strip_tags($this->metaDescription));
143 143
         $this->_content->source = App::$Security->strip_tags($this->source);
144 144
         // check if rating is changed
145
-        if ((int)$this->addRating !== 0) {
146
-            $this->_content->rating += (int)$this->addRating;
145
+        if ((int) $this->addRating !== 0) {
146
+            $this->_content->rating += (int) $this->addRating;
147 147
         }
148 148
         // check if special comment hash is exist
149 149
         if ($this->_new || Str::length($this->_content->comment_hash) < 32) {
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $data = ContentCategory::getSortedCategories();
182 182
         $response = [];
183 183
         foreach ($data as $key=>$val) {
184
-            $response[] = (string)$key;
184
+            $response[] = (string) $key;
185 185
         }
186 186
         return $response;
187 187
     }
Please login to merge, or discard this patch.
Apps/Model/Console/ArchBuilder.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@
 block discarded – undo
10 10
 {
11 11
     public $message;
12 12
 
13
+    /**
14
+     * @param string $type
15
+     */
13 16
     public function createObject($name, $type)
14 17
     {
15 18
         $singleName = false;
Please login to merge, or discard this patch.
Apps/Model/Front/Profile/FormIgnoreDelete.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
     private $_user;
16 16
     private $_target_id;
17 17
 
18
+    /**
19
+     * @param string $target_id
20
+     */
18 21
     public function __construct(iUser $user, $target_id)
19 22
     {
20 23
         $this->_user = $user;
Please login to merge, or discard this patch.
Apps/Model/Front/Profile/FormWallPost.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Apps\Model\Front\Profile;
4 4
 
5
-use Apps\ActiveRecord\Blacklist;
6 5
 use Apps\ActiveRecord\WallPost as WallRecords;
7 6
 use Ffcms\Core\App;
8 7
 use Ffcms\Core\Interfaces\iUser;
Please login to merge, or discard this patch.
Apps/Model/Front/User/FormLogin.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Ffcms\Core\App;
6 6
 use Ffcms\Core\Arch\Model;
7
-use Ffcms\Core\Helper\Type\Obj;
8 7
 use Ffcms\Core\Helper\Type\Str;
9 8
 use Ffcms\Core\Interfaces\iUser;
10 9
 
Please login to merge, or discard this patch.