Passed
Push — master ( aaaee4...c2a29b )
by Mihail
04:03
created
Apps/View/Admin/default/comments/comment_read.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     <div class="panel-heading">
55 55
         <?php
56 56
         $answerAuthor = Simplify::parseUserNick($answer->user_id, $answer->guest_name);
57
-        if ((int)$answer->user_id > 0) {
57
+        if ((int) $answer->user_id > 0) {
58 58
             $answerAuthor = Url::link(['user/update', $answer->user_id], $answerAuthor);
59 59
         }
60 60
         ?>
Please login to merge, or discard this patch.
Apps/Controller/Front/User.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             App::$Session->getFlashBag()->add('error', __('User is never exist or password is incorrect!'));
54 54
             // initialize fail event
55 55
             App::$Event->run(static::EVENT_USER_LOGIN_FAIL, [
56
-               'model' => $loginForm 
56
+                'model' => $loginForm 
57 57
             ]);
58 58
         }
59 59
 
@@ -113,14 +113,14 @@  discard block
 block discarded – undo
113 113
             if ($registerForm->tryRegister($configs['registrationType'] === 1)) {
114 114
                 // initialize succes signup event
115 115
                 App::$Event->run(static::EVENT_USER_REGISTER_SUCCESS, [
116
-                   'model' => $registerForm 
116
+                    'model' => $registerForm 
117 117
                 ]);
118 118
                 // send notification of successful registering
119 119
                 App::$Session->getFlashBag()->add('success', __('Your account is registered. You must confirm account via email'));
120 120
             } else {
121 121
                 // init fail signup event
122 122
                 App::$Event->run(static::EVENT_USER_REGISTER_FAIL, [
123
-                   'model' => $registerForm 
123
+                    'model' => $registerForm 
124 124
                 ]);
125 125
                 App::$Session->getFlashBag()->add('error', __('Login or email is always used on website'));
126 126
             }
Please login to merge, or discard this patch.
Apps/Model/Admin/Comments/FormCommentUpdate.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     
16 16
     /**
17 17
      * FormCommentUpdate constructor. Pass record inside the model.
18
-     * @param Apps\ActiveRecord\CommentPost|Apps\ActiveRecord\CommentAnswer $record
18
+     * @param \Ffcms\Core\Arch\ActiveModel $record
19 19
      */
20 20
     public function __construct($record, $type = 'comment')
21 21
     {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
     }
25 25
     
26 26
     /**
27
-    * Set default values from active record data
28
-    */
27
+     * Set default values from active record data
28
+     */
29 29
     public function before()
30 30
     {
31 31
         $this->message = $this->_record->message;
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
     }
34 34
 
35 35
     /**
36
-    * Labels to display in view
37
-    */
36
+     * Labels to display in view
37
+     */
38 38
     public function labels()
39 39
     {
40 40
         return [
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-    * Validation rules for comment body
48
-    */
47
+     * Validation rules for comment body
48
+     */
49 49
     public function rules()
50 50
     {
51 51
         return [
Please login to merge, or discard this patch.
Apps/View/Admin/default/comments/delete.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
 foreach ($records as $item) {
33 33
     $message = Str::sub(\App::$Security->strip_tags($item->message), 0, 50);
34 34
     $author = Simplify::parseUserNick($item->user_id, $item->guest_name);
35
-    if ((int)$item->user_id > 0) {
36
-        $author = Url::link(['user/update', (int)$item->user_id], $author);
35
+    if ((int) $item->user_id > 0) {
36
+        $author = Url::link(['user/update', (int) $item->user_id], $author);
37 37
     }
38 38
     
39 39
     
Please login to merge, or discard this patch.
Apps/View/Admin/default/comments/answer_list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 foreach ($records as $item) {
32 32
     $message = Text::cut(\App::$Security->strip_tags($item->message), 0, 75);
33 33
     $userArr = [];
34
-    if ((int)$item->user_id > 0 && \App::$User->isExist($item->user_id)) {
34
+    if ((int) $item->user_id > 0 && \App::$User->isExist($item->user_id)) {
35 35
         $userName = \App::$User->identity($item->user_id)->getProfile()->getNickname();
36 36
         $userArr = ['text' => Url::link(['user/update', $item->user_id], $userName), 'html' => true];
37 37
     }
Please login to merge, or discard this patch.
Apps/Controller/Admin/Comments.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function actionIndex()
39 39
     {
40 40
         // set current page and offset
41
-        $page = (int)App::$Request->query->get('page');
41
+        $page = (int) App::$Request->query->get('page');
42 42
         $offset = $page * self::ITEM_PER_PAGE;
43 43
 
44 44
         // initialize active record model
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     public function actionDelete($type, $id = 0)
134 134
     {
135 135
         // sounds like a multiply delete definition
136
-        if ($id === 0 || (int)$id < 1) {
136
+        if ($id === 0 || (int) $id < 1) {
137 137
             $ids = App::$Request->query->get('selectRemove');
138 138
             if (Obj::isArray($ids) && Arr::onlyNumericValues($ids)) {
139 139
                 $id = $ids;
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     public function actionAnswerlist()
184 184
     {
185 185
         // set current page and offset
186
-        $page = (int)App::$Request->query->get('page');
186
+        $page = (int) App::$Request->query->get('page');
187 187
         $offset = $page * self::ITEM_PER_PAGE;
188 188
         
189 189
         // initialize ar answers model
Please login to merge, or discard this patch.