Passed
Push — master ( 42e076...8f5376 )
by Mihail
17:56
created
Apps/Model/Front/Profile/FormAvatarUpload.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     const COMPRESS_QUALITY = 90;
17 17
 
18 18
     /**
19
-    * Example of usage magic labels for future form helper usage
20
-    */
19
+     * Example of usage magic labels for future form helper usage
20
+     */
21 21
     public function labels()
22 22
     {
23 23
         return [
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
     }
27 27
 
28 28
     /**
29
-    * Example of usage magic rules for future usage in condition $model->validate()
30
-    */
29
+     * Example of usage magic rules for future usage in condition $model->validate()
30
+     */
31 31
     public function rules()
32 32
     {
33 33
         return [
Please login to merge, or discard this patch.
Apps/Model/Front/Profile/FormIgnoreAdd.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
     }
34 34
 
35 35
     /**
36
-    * Validation rules
37
-    */
36
+     * Validation rules
37
+     */
38 38
     public function rules()
39 39
     {
40 40
         return [
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     public function save()
53 53
     {
54 54
         // check if target is myself or always exist in block list
55
-        if ($this->_user->getId() === (int)$this->id || Blacklist::have($this->_user->getId(), $this->id)) {
55
+        if ($this->_user->getId() === (int) $this->id || Blacklist::have($this->_user->getId(), $this->id)) {
56 56
             return false;
57 57
         }
58 58
 
Please login to merge, or discard this patch.
Apps/Model/Front/Profile/FormSettings.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
     }
31 31
 
32 32
     /**
33
-    * Set default data
34
-    */
33
+     * Set default data
34
+     */
35 35
     public function before()
36 36
     {
37 37
         $profile = $this->_user->getProfile()->toArray(); // object to array (property's is protected of access)
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     }
53 53
 
54 54
     /**
55
-    * Labels
56
-    */
55
+     * Labels
56
+     */
57 57
     public function labels()
58 58
     {
59 59
         $labels =  [
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
     }
76 76
 
77 77
     /**
78
-    * Rules for validation
79
-    */
78
+     * Rules for validation
79
+     */
80 80
     public function rules()
81 81
     {
82 82
         $rules = [
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     */
57 57
     public function labels()
58 58
     {
59
-        $labels =  [
59
+        $labels = [
60 60
             'nick' => __('Nickname'),
61 61
             'sex' => __('Sex'),
62 62
             'birthday' => __('Birthday'),
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             ];
99 99
             $rules[] = [
100 100
                 'custom_data.' . $custom->id,
101
-                (int)$custom->reg_cond === 1 ? 'direct_match' : 'reverse_match',
101
+                (int) $custom->reg_cond === 1 ? 'direct_match' : 'reverse_match',
102 102
                 $custom->reg_exp
103 103
             ];
104 104
         }
Please login to merge, or discard this patch.
Apps/Model/Front/Profile/FormWallPostDelete.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
 
21 21
 
22 22
     /**
23
-    * Set post id based on post active record
24
-    */
23
+     * Set post id based on post active record
24
+     */
25 25
     public function before()
26 26
     {
27 27
         $this->id = $this->_post->id;
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
 
30 30
 
31 31
     /**
32
-    * Pseudo-rules, here is not required
33
-    */
32
+     * Pseudo-rules, here is not required
33
+     */
34 34
     public function rules()
35 35
     {
36 36
         return [];
Please login to merge, or discard this patch.
Apps/Model/Front/User/FormRecovery.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
     public $captcha;
18 18
 
19 19
     /**
20
-    * Labels
21
-    */
20
+     * Labels
21
+     */
22 22
     public function labels()
23 23
     {
24 24
         return [
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
     }
29 29
 
30 30
     /**
31
-    * Validation rules
32
-    */
31
+     * Validation rules
32
+     */
33 33
     public function rules()
34 34
     {
35 35
         return [
Please login to merge, or discard this patch.
Apps/View/Admin/default/application/turn.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
             [['text' => __('Name')], ['text' => $app->getLocaleName()]],
32 32
             [['text' => __('System name')], ['text' => $app->sys_name]],
33 33
             [['text' => __('Last update')], ['text' => Date::convertToDatetime($app->updated_at, DATE::FORMAT_TO_SECONDS)]],
34
-            [['text' => __('Status')], ['text' => ((int)$app->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' =>  ((int)$app->disabled === 0) ? 'alert-success' : 'alert-danger']]
34
+            [['text' => __('Status')], ['text' => ((int) $app->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' =>  ((int) $app->disabled === 0) ? 'alert-success' : 'alert-danger']]
35 35
         ]
36 36
     ]
37 37
 ]); ?>
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/category_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
             <tr>
56 56
                 <td>
57 57
                     <div class="row">
58
-                        <div class="col-md-<?= $offset ?> col-xs-<?= $offset+2 ?>" style="padding-top: 8px;border-bottom: 2px solid #8a8a8a"></div>
59
-                        <div class="col-md-<?= $set ?> col-xs-<?= $set-2 ?>">
58
+                        <div class="col-md-<?= $offset ?> col-xs-<?= $offset + 2 ?>" style="padding-top: 8px;border-bottom: 2px solid #8a8a8a"></div>
59
+                        <div class="col-md-<?= $set ?> col-xs-<?= $set - 2 ?>">
60 60
                             <?= Serialize::getDecodeLocale($row->title) ?>
61 61
                             <span class="label label-info">/<?= $row->path ?></span>
62 62
                         </div>
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/category_update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 $pathProperty = [
52 52
     'class' => 'form-control'
53 53
 ];
54
-if ((int)$model->id == '1') {
54
+if ((int) $model->id == '1') {
55 55
     $pathProperty['disabled'] = '';
56 56
 } else {
57 57
     echo $form->field('dependId', 'select', ['class' => 'form-control', 'options' => $model->categoryList(), 'optionsKey' => true], __('Select owner category for this category'));
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/content_update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
         ['type' => 'tab', 'text' => __('Gallery'), 'content' => $galleryTab, 'html' => true, '!secure' => true],
111 111
         ['type' => 'tab', 'text' => __('Other'), 'content' => $otherTab, 'html' => true, '!secure' => true]
112 112
     ]
113
-]);?>
113
+]); ?>
114 114
 
115 115
 <?= $form->field('galleryFreeId', 'hidden') ?>
116 116
 <?= $form->submitButton(__('Save'), ['class' => 'btn btn-primary']) ?>
Please login to merge, or discard this patch.