Passed
Push — master ( cc7747...d2190f )
by Mihail
10:36
created
Apps/View/Admin/default/comments/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
         ['type' => 'link', 'text' => __('Group management'), 'link' => ['user/grouplist']],
10 10
         ['type' => 'link', 'text' => __('Settings'), 'link' => ['user/settings']]
11 11
     ]
12
-]);?>
13 12
\ No newline at end of file
13
+]); ?>
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Model/Front/Feedback/FormFeedbackAdd.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function __construct($captcha = true)
22 22
     {
23
-        $this->_useCaptcha = (bool)$captcha;
23
+        $this->_useCaptcha = (bool) $captcha;
24 24
         parent::__construct();
25 25
     }
26 26
 
Please login to merge, or discard this patch.
Apps/View/Admin/default/feedback/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
         ['type' => 'link', 'text' => __('Group management'), 'link' => ['user/grouplist']],
10 10
         ['type' => 'link', 'text' => __('Settings'), 'link' => ['user/settings']]
11 11
     ]
12
-]);?>
13 12
\ No newline at end of file
13
+]); ?>
14 14
\ No newline at end of file
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/Model/Api/Content/ContentRatingChange.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         App::$Session->set('content.rate.ignore', $ignored);
65 65
         
66 66
         // save rating changes to database
67
-        switch($this->_type) {
67
+        switch ($this->_type) {
68 68
             case 'plus':
69 69
                 $this->_content->rating += 1;
70 70
                 break;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $this->_content->save();
77 77
         
78 78
         // update content author rating
79
-        $authorId = (int)$this->_content->author_id;
79
+        $authorId = (int) $this->_content->author_id;
80 80
         if ($authorId > 0 && App::$User->isExist($authorId)) {
81 81
             $authorObject = App::$User->identity($authorId);
82 82
             if ($authorObject !== null) {
Please login to merge, or discard this patch.
Private/Database/Tables/App.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 ]);
47 47
 
48 48
 $configs->newcontent = serialize([
49
-    'categories' => serialize(['2','3']),
49
+    'categories' => serialize(['2', '3']),
50 50
     'count' => '5',
51 51
     'cache' => '60'
52 52
 ]);
Please login to merge, or discard this patch.
Apps/View/Admin/default/user/group_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 <?php
26 26
 $items = [];
27
-foreach($records as $role) {
27
+foreach ($records as $role) {
28 28
     $permissions = explode(';', $role->permissions);
29 29
     $permissionsLabel = null;
30 30
     foreach ($permissions as $perm) {
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         } else {
37 37
             $labelMark = 'label-default';
38 38
         }
39
-        $permissionsLabel .= '<span class="label ' . $labelMark . '">' . $perm . '</span> ';
39
+        $permissionsLabel .= '<span class="label '.$labelMark.'">'.$perm.'</span> ';
40 40
     }
41 41
     $items[] = [
42 42
         ['text' => $role->id],
Please login to merge, or discard this patch.
Apps/View/Admin/default/native/macro/widget_actions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 use Ffcms\Core\Helper\Url;
3 3
 
4 4
 if (isset($controller)): ?>
5
-<a href="<?= Url::to($controller . '/index') ?>"><i class="fa fa-cogs"></i></a>&nbsp;
5
+<a href="<?= Url::to($controller.'/index') ?>"><i class="fa fa-cogs"></i></a>&nbsp;
6 6
 <a href="<?= Url::to('widget/turn', $controller) ?>"><i class="fa fa-power-off"></i></a>
7 7
 <?php endif; ?>
8 8
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Admin/default/layout/main.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     <?php
23 23
     $customCssCode = \App::$View->showPlainCode('css');
24 24
     if ($customCssCode !== null) {
25
-        echo '<style>' . $customCssCode . '</style>';
25
+        echo '<style>'.$customCssCode.'</style>';
26 26
     } ?>
27 27
     <script>
28 28
         window.jQ = [];
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
                             'type' => 'ul',
131 131
                             'property' => ['class' => 'nav nav-second-level'],
132 132
                             'items' => [
133
-                                ['type' => 'link', 'link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true],
134
-                                ['type' => 'link', 'link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> ' . __('Files'), 'html' => true],
135
-                                ['type' => 'link', 'link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> ' . __('Antivirus'), 'html' => true],
136
-                                ['type' => 'link', 'link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> ' . __('Routing'), 'html' => true],
137
-                                ['type' => 'link', 'link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> ' . __('Updates'), 'html' => true]
133
+                                ['type' => 'link', 'link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true],
134
+                                ['type' => 'link', 'link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> '.__('Files'), 'html' => true],
135
+                                ['type' => 'link', 'link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> '.__('Antivirus'), 'html' => true],
136
+                                ['type' => 'link', 'link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> '.__('Routing'), 'html' => true],
137
+                                ['type' => 'link', 'link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> '.__('Updates'), 'html' => true]
138 138
                             ]
139 139
                         ]) ?>
140 140
                         <!-- /.nav-second-level -->
@@ -154,22 +154,22 @@  discard block
 block discarded – undo
154 154
                     foreach ($extTable as $item) {
155 155
                         $menuItem = [
156 156
                             'type' => 'link',
157
-                            'link' => [Str::lowerCase($item->sys_name) . '/index'],
158
-                            'text' => $item->getLocaleName() . (!$item->checkVersion() ? ' <i class="fa fa-wrench" style="color: #ffbd26;"></i>' : null),
157
+                            'link' => [Str::lowerCase($item->sys_name).'/index'],
158
+                            'text' => $item->getLocaleName().(!$item->checkVersion() ? ' <i class="fa fa-wrench" style="color: #ffbd26;"></i>' : null),
159 159
                             'html' => true
160 160
                         ];
161 161
                         if ($item->type === 'app') {
162 162
                             $appControllers[] = $item->sys_name;
163 163
                             $appMenuItems[] = $menuItem;
164
-                        } elseif($item->type === 'widget') {
164
+                        } elseif ($item->type === 'widget') {
165 165
                             $widgetControllers[] = $item->sys_name;
166 166
                             $widgetMenuItems[] = $menuItem;
167 167
                         }
168 168
                     }
169 169
 
170
-                    $appMenuItems[] = ['type' => 'link', 'link' => ['application/index'], 'text' => __('All apps') . '...'];
170
+                    $appMenuItems[] = ['type' => 'link', 'link' => ['application/index'], 'text' => __('All apps').'...'];
171 171
                     $appControllers[] = 'Application';
172
-                    $widgetMenuItems[] = ['type' => 'link', 'link' => ['widget/index'], 'text' => __('All widgets') . '...'];
172
+                    $widgetMenuItems[] = ['type' => 'link', 'link' => ['widget/index'], 'text' => __('All widgets').'...'];
173 173
                     $widgetControllers[] = 'Widget';
174 174
                     ?>
175 175
                     <li<?= Arr::in(\App::$Request->getController(), $appControllers) ? ' class="active"' : null ?>>
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
                             echo $body;
231 231
                         } else {
232 232
                             \App::$Response->setStatusCode(404);
233
-                            echo '<p>' . __('Page is not founded!') . '</p>';
233
+                            echo '<p>'.__('Page is not founded!').'</p>';
234 234
                         }
235 235
                         ?>
236 236
                     </article>
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 <?php
262 262
 $customJsCode = \App::$View->showPlainCode('js');
263 263
 if ($customJsCode !== null) {
264
-    echo '<script>' . $customJsCode . '</script>';
264
+    echo '<script>'.$customJsCode.'</script>';
265 265
 }
266 266
 ?>
267 267
 </body>
Please login to merge, or discard this patch.