Passed
Branch master (25273e)
by Mihail
04:57
created
Apps/Model/Admin/Main/FormAddRoute.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
 
18 18
 
19 19
     /**
20
-    * Load default properties into the model
21
-    */
20
+     * Load default properties into the model
21
+     */
22 22
     public function before()
23 23
     {
24 24
         $this->cfg = App::$Properties->getAll('Routing');
25 25
     }
26 26
 
27 27
     /**
28
-    * Define labels for form
29
-    */
28
+     * Define labels for form
29
+     */
30 30
     public function labels()
31 31
     {
32 32
         return [
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    * Define validation rules
42
-    */
41
+     * Define validation rules
42
+     */
43 43
     public function rules()
44 44
     {
45 45
         return [
Please login to merge, or discard this patch.
Apps/Model/Admin/Main/FormSettings.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
     public $languageDomainAlias;
28 28
 
29 29
     /**
30
-    * Set property values from configurations
31
-    */
30
+     * Set property values from configurations
31
+     */
32 32
     public function before()
33 33
     {
34 34
         // set default values
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    * Set translation helpers
42
-    */
41
+     * Set translation helpers
42
+     */
43 43
     public function labels()
44 44
     {
45 45
         return [
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
     }
65 65
 
66 66
     /**
67
-    * Validation rules for configuration saving
68
-    */
67
+     * Validation rules for configuration saving
68
+     */
69 69
     public function rules()
70 70
     {
71 71
         return [
Please login to merge, or discard this patch.
Apps/Model/Admin/Profile/FormFieldUpdate.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
     }
24 24
 
25 25
     /**
26
-    * Set defaults values
27
-    */
26
+     * Set defaults values
27
+     */
28 28
     public function before()
29 29
     {
30 30
         foreach ($this->_record->toArray() as $property => $value) {
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-    * Labels
43
-    */
42
+     * Labels
43
+     */
44 44
     public function labels()
45 45
     {
46 46
         return [
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     }
53 53
 
54 54
     /**
55
-    * Validation rules
56
-    */
55
+     * Validation rules
56
+     */
57 57
     public function rules()
58 58
     {
59 59
         $rules = [
@@ -87,6 +87,6 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function delete()
89 89
     {
90
-       $this->_record->delete();
90
+        $this->_record->delete();
91 91
     }
92 92
 }
93 93
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Model/Admin/User/FormUserDelete.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
     }
22 22
 
23 23
     /**
24
-    * Set user data to model property
25
-    */
24
+     * Set user data to model property
25
+     */
26 26
     public function before()
27 27
     {
28 28
         $this->email = $this->_user->getParam('email');
Please login to merge, or discard this patch.
Apps/Model/Admin/User/FormUserGroupUpdate.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
     }
27 27
 
28 28
     /**
29
-    * Magic method before example
30
-    */
29
+     * Magic method before example
30
+     */
31 31
     public function before()
32 32
     {
33 33
         $this->name = $this->_role->name;
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
     }
38 38
 
39 39
     /**
40
-    * Example of usage magic labels for future form helper usage
41
-    */
40
+     * Example of usage magic labels for future form helper usage
41
+     */
42 42
     public function labels()
43 43
     {
44 44
         return [
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-    * Example of usage magic rules for future usage in condition $model->validate()
52
-    */
51
+     * Example of usage magic rules for future usage in condition $model->validate()
52
+     */
53 53
     public function rules()
54 54
     {
55 55
         return [
Please login to merge, or discard this patch.
Apps/Model/Admin/User/FormUserSettings.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
     }
20 20
 
21 21
     /**
22
-    * Load configs from app data
23
-    */
22
+     * Load configs from app data
23
+     */
24 24
     public function before()
25 25
     {
26 26
         foreach ($this->_config as $property => $value) {
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
     }
32 32
 
33 33
     /**
34
-    * Example of usage magic labels for future form helper usage
35
-    */
34
+     * Example of usage magic labels for future form helper usage
35
+     */
36 36
     public function labels()
37 37
     {
38 38
         return [
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     }
44 44
 
45 45
     /**
46
-    * Example of usage magic rules for future usage in condition $model->validate()
47
-    */
46
+     * Example of usage magic rules for future usage in condition $model->validate()
47
+     */
48 48
     public function rules()
49 49
     {
50 50
         return [
Please login to merge, or discard this patch.
Apps/Model/Admin/User/FormUserUpdate.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
     }
36 36
 
37 37
     /**
38
-    * Load user data on before method
39
-    */
38
+     * Load user data on before method
39
+     */
40 40
     public function before()
41 41
     {
42 42
         foreach ($this->getAllProperties() as $property => $old_data) {
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
     }
65 65
 
66 66
     /**
67
-    * Example of usage magic rules for future usage in condition $model->validate()
68
-    */
67
+     * Example of usage magic rules for future usage in condition $model->validate()
68
+     */
69 69
     public function rules()
70 70
     {
71 71
         return [
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
                 if ($this->newpassword !== null && Str::length($this->newpassword) >= 3) {
99 99
                     $this->_user->password = App::$Security->password_hash($this->newpassword);
100 100
                 }
101
-            } elseif($property === 'approve_token') {
101
+            } elseif ($property === 'approve_token') {
102 102
                 if ($value == "1") {
103 103
                     $this->_user->approve_token = '0';
104 104
                 } else {
Please login to merge, or discard this patch.
Apps/Model/Basic/Antivirus.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         $this->scanFiles = json_decode(File::read('/Private/Antivirus/ScanFiles.json'));
48 48
         if (File::exist('/Private/Antivirus/Infected.json')) {
49
-            $this->infected = (array)json_decode(File::read('/Private/Antivirus/Infected.json'));
49
+            $this->infected = (array) json_decode(File::read('/Private/Antivirus/Infected.json'));
50 50
         }
51 51
     }
52 52
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
                         $detected = true;
115 115
                         $pos = $found[0][1];
116 116
                         $this->infected[$path][] = [
117
-                            'pos' => (int)$pos,
117
+                            'pos' => (int) $pos,
118 118
                             'sigId' => $attrId,
119 119
                             'sigRule' => $sigContent,
120 120
                             'sever' => $attrSever,
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                         (($pos = strpos($normalized, $sigContent)) !== false)
129 129
                     ) {
130 130
                         $this->infected[$path][] = [
131
-                            'pos' => (int)$pos,
131
+                            'pos' => (int) $pos,
132 132
                             'sigId' => $attrId,
133 133
                             'sigRule' => $sigContent,
134 134
                             'sever' => $attrSever,
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     private function prepareScanlist()
150 150
     {
151
-        $files = (object)File::listFiles(root, $this->affectedExt);
151
+        $files = (object) File::listFiles(root, $this->affectedExt);
152 152
         File::write('/Private/Antivirus/ScanFiles.json', json_encode($files));
153 153
     }
154 154
 
Please login to merge, or discard this patch.
Apps/Model/Front/Content/EntityContentRead.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     /**
58 58
      * Prepare model attributes from passed objects
59 59
      * @throws ForbiddenException
60
-    */
60
+     */
61 61
     public function before()
62 62
     {
63 63
         $this->title = Serialize::getDecodeLocale($this->_content->title);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         }
96 96
 
97 97
         $this->source = $this->_content->source;
98
-        $this->views = $this->_content->views+1;
98
+        $this->views = $this->_content->views + 1;
99 99
         // check for dependence, add '' for general cat, ex: general/depend1/depend2/.../depend-n
100 100
         $catNestingArray = Arr::merge([0 => ''], explode('/', $this->catPath));
101 101
         if ($catNestingArray > 1) {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $this->rating = $this->_content->rating;
170 170
         $ignoredRate = App::$Session->get('content.rate.ignore');
171 171
         $this->canRate = true;
172
-        if (Obj::isArray($ignoredRate) && Arr::in((string)$this->id, $ignoredRate)) {
172
+        if (Obj::isArray($ignoredRate) && Arr::in((string) $this->id, $ignoredRate)) {
173 173
             $this->canRate = false;
174 174
         }
175 175
         if (!App::$User->isAuth()) {
Please login to merge, or discard this patch.