Passed
Push — master ( ef4849...3d6fe1 )
by Mihail
05:23
created
Apps/View/Install/default/native/macro/notify.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
 if (Obj::isArray($notify) && count($notify) > 0) {
31 31
     foreach ($notify as $type => $messages) {
32 32
         foreach ($messages as $message) {
33
-            echo '<p class="alert ' . type2html($type) . '">
33
+            echo '<p class="alert '.type2html($type).'">
34 34
             <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>'
35
-                . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>';
35
+                . \Ffcms\Core\App::$Security->strip_tags($message).'</p>';
36 36
         }
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
Apps/View/Install/default/layout/main.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     <?php
17 17
     $customCssCode = \App::$View->showPlainCode('css');
18 18
     if ($customCssCode !== null) {
19
-        echo '<style>' . $customCssCode . '</style>';
19
+        echo '<style>'.$customCssCode.'</style>';
20 20
     } ?>
21 21
     <script>
22 22
         window.jQ = [];
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     <?php
63 63
     $customJsCode = \App::$View->showPlainCode('js');
64 64
     if ($customJsCode !== null) {
65
-        echo '<script>' . $customJsCode . '</script>';
65
+        echo '<script>'.$customJsCode.'</script>';
66 66
     }
67 67
     ?>
68 68
 </body>
Please login to merge, or discard this patch.
Apps/Model/Admin/Application/FormUpdate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function before()
34 34
     {
35 35
         // get full name of update object
36
-        $class = 'Apps\Controller\Admin\\' . $this->_record->sys_name;
36
+        $class = 'Apps\Controller\Admin\\'.$this->_record->sys_name;
37 37
         if (class_exists($class)) {
38 38
             $this->_callback = $class;
39 39
         } else {
Please login to merge, or discard this patch.
Apps/Model/Admin/Application/FormInstall.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function before()
40 40
     {
41 41
         foreach ($this->_apps as $app) {
42
-            $this->_definedControllers[] = (string)$app->sys_name;
42
+            $this->_definedControllers[] = (string) $app->sys_name;
43 43
         }
44 44
 
45 45
         parent::before();
@@ -70,14 +70,14 @@  discard block
 block discarded – undo
70 70
     public function make()
71 71
     {
72 72
         $cName = ucfirst(Str::lowerCase($this->sysname));
73
-        $cPath = 'Apps\Controller\Admin\\' . $cName;
73
+        $cPath = 'Apps\Controller\Admin\\'.$cName;
74 74
         // if object class is not loaded - prevent install
75
-        if (!class_exists($cPath) || !defined($cPath . '::VERSION')) {
75
+        if (!class_exists($cPath) || !defined($cPath.'::VERSION')) {
76 76
             return false;
77 77
         }
78 78
 
79 79
         // get ext version
80
-        $cVersion = (float)constant($cPath . '::VERSION');
80
+        $cVersion = (float) constant($cPath.'::VERSION');
81 81
         if ($cVersion < 0.1) {
82 82
             $cVersion = 0.1;
83 83
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
         // callback to install method in extension
95 95
         if (method_exists($cPath, 'install')) {
96
-            call_user_func($cPath . '::install');
96
+            call_user_func($cPath.'::install');
97 97
         }
98 98
 
99 99
         return true;
Please login to merge, or discard this patch.
Apps/Model/Admin/Profile/FormFieldUpdate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@
 block discarded – undo
62 62
         ];
63 63
 
64 64
         foreach (App::$Properties->get('languages') as $lang) {
65
-            $rules[] = ['name.' . $lang, 'required'];
66
-            $rules[] = ['name.' . $lang, 'length_max', 50];
65
+            $rules[] = ['name.'.$lang, 'required'];
66
+            $rules[] = ['name.'.$lang, 'length_max', 50];
67 67
         }
68 68
 
69 69
         return $rules;
Please login to merge, or discard this patch.
Apps/Model/Admin/Main/FormAddRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $configData = [
59 59
             ucfirst(Str::lowerCase($this->type)) => [
60 60
                 ucfirst(Str::lowerCase($this->loader)) => [
61
-                    '/' . trim($this->source, '/') => '/' . trim($this->target, '/')
61
+                    '/'.trim($this->source, '/') => '/'.trim($this->target, '/')
62 62
                 ]
63 63
             ]
64 64
         ];
Please login to merge, or discard this patch.
Apps/Model/Admin/Main/EntityDeleteRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
         // prepare source path
50 50
         if ($this->type === 'Alias') {
51
-            $this->source = '/' . trim($this->source, '/');
51
+            $this->source = '/'.trim($this->source, '/');
52 52
         } else {
53 53
             $this->source = ucfirst($this->source);
54 54
         }
Please login to merge, or discard this patch.
Apps/Model/Admin/Content/FormCategoryDelete.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         }
76 76
 
77 77
         // get all depended category ids
78
-        $cats = ContentCategory::where('path', 'like', $this->_record->path . '%')->get(['id'])->toArray();
78
+        $cats = ContentCategory::where('path', 'like', $this->_record->path.'%')->get(['id'])->toArray();
79 79
         $allCategoryIds = Arr::ploke('id', $cats);
80 80
 
81 81
         // update category_id in content
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $response = [];
111 111
         foreach ($data as $key=>$val) {
112 112
             if ($this->_record->id !== $key) {
113
-                $response[] = (string)$key;
113
+                $response[] = (string) $key;
114 114
             }
115 115
         }
116 116
         return $response;
Please login to merge, or discard this patch.
Apps/Model/Admin/Content/FormContentUpdate.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         if ($this->_content->id === null) {
52 52
             $this->_new = true;
53 53
             if (null === $this->galleryFreeId) {
54
-                $this->galleryFreeId = '_tmp_' . Str::randomLatin(mt_rand(16, 32));
54
+                $this->galleryFreeId = '_tmp_'.Str::randomLatin(mt_rand(16, 32));
55 55
             }
56 56
             if (null === $this->authorId) {
57 57
                 $this->authorId = App::$User->identity()->getId();
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function rules()
83 83
     {
84
-        $res =  [
85
-            ['title.' . App::$Request->getLanguage(), 'required'],
86
-            ['text.' . App::$Request->getLanguage(), 'required', null, true, true],
84
+        $res = [
85
+            ['title.'.App::$Request->getLanguage(), 'required'],
86
+            ['text.'.App::$Request->getLanguage(), 'required', null, true, true],
87 87
             ['text', 'used', null, true, true],
88 88
             ['path', 'reverse_match', '/[\/\'~`\!@#\$%\^&\*\(\)+=\{\}\[\]\|;:"\<\>,\?\\\]/'],
89 89
             [['path', 'categoryId', 'authorId', 'display', 'galleryFreeId', 'title'], 'required'],
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
         ];
97 97
 
98 98
         foreach (App::$Properties->get('languages') as $lang) {
99
-            $res[] = ['title.' . $lang, 'length_max', 120, null, true, true];
100
-            $res[] = ['keywords.' . $lang, 'length_max', 150];
101
-            $res[] = ['description.' . $lang, 'length_max', 250];
99
+            $res[] = ['title.'.$lang, 'length_max', 120, null, true, true];
100
+            $res[] = ['keywords.'.$lang, 'length_max', 150];
101
+            $res[] = ['description.'.$lang, 'length_max', 250];
102 102
         }
103 103
 
104 104
         return $res;
@@ -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) {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         }
156 156
 
157 157
         // save poster data
158
-        $posterPath = '/upload/gallery/' . $this->galleryFreeId . '/orig/' . $this->poster;
158
+        $posterPath = '/upload/gallery/'.$this->galleryFreeId.'/orig/'.$this->poster;
159 159
         if (File::exist($posterPath)) {
160 160
             $this->_content->poster = $this->poster;
161 161
         }
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
         // move files
170 170
         if ($tmpGalleryId !== $this->_content->id) {
171
-            Directory::rename('/upload/gallery/' . $tmpGalleryId, $this->_content->id);
171
+            Directory::rename('/upload/gallery/'.$tmpGalleryId, $this->_content->id);
172 172
         }
173 173
     }
174 174
 
@@ -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.