Passed
Push — master ( 10220a...9ad793 )
by Mihail
05:11
created
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.
Apps/View/Admin/default/profile/field_update.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
 foreach (\App::$Properties->get('languages') as $lang) {
34 34
     $nameTab[] = [
35 35
         'type' => 'tab',
36
-        'text' => __('Lang') . ': ' . Str::upperCase($lang),
37
-        'content' => $form->field('name.' . $lang, 'text', ['class' => 'form-control'], __('Define field name, which be displayed for user for current language locale')),
36
+        'text' => __('Lang').': '.Str::upperCase($lang),
37
+        'content' => $form->field('name.'.$lang, 'text', ['class' => 'form-control'], __('Define field name, which be displayed for user for current language locale')),
38 38
         'active' => $lang === \App::$Request->getLanguage(),
39 39
         'html' => true,
40 40
         '!secure' => true
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
 foreach ($records as $profile) {
28 28
     $items[] = [
29 29
         ['text' => $profile->id],
30
-        ['text' => $profile->User()->login . '/' . $profile->User()->email],
30
+        ['text' => $profile->User()->login.'/'.$profile->User()->email],
31 31
         ['text' => $profile->nick],
32 32
         ['text' => Str::startsWith('0000-', $profile->birthday) ? __('None') : Date::convertToDatetime($profile->birthday)],
33
-        ['text' => ($profile->rating > 0 ? '+' : null) . $profile->rating],
34
-        ['text' => Url::link(['profile/update', $profile->id], '<i class="fa fa-pencil fa-lg"></i> ') .
33
+        ['text' => ($profile->rating > 0 ? '+' : null).$profile->rating],
34
+        ['text' => Url::link(['profile/update', $profile->id], '<i class="fa fa-pencil fa-lg"></i> ').
35 35
             Url::link(['user/delete', $profile->User()->id], '<i class="fa fa-trash-o fa-lg"></i>'),
36 36
             'html' => true, 'property' => ['class' => 'text-center']]
37 37
     ];
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/field_list.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 <hr />
24 24
     <div class="row">
25 25
         <div class="col-md-12">
26
-            <?= Url::link(['profile/fieldupdate', 0], '<i class="fa fa-plus"></i> ' . __('Add field'), ['class' => 'btn btn-primary pull-right']) ?>
26
+            <?= Url::link(['profile/fieldupdate', 0], '<i class="fa fa-plus"></i> '.__('Add field'), ['class' => 'btn btn-primary pull-right']) ?>
27 27
         </div>
28 28
     </div>
29 29
 <?php if ($records->count() > 0):
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
         $items[] = [
39 39
             ['text' => $row->id],
40 40
             ['text' => Serialize::getDecodeLocale($row->name)],
41
-            ['text' => '<span class="' . $labelClass . '">' . $row->type . '</span>', 'html' => true],
42
-            ['text' => '<code>' . ($row->reg_cond == 0 ? '!' : null) . 'preg_match("' . $row->reg_exp . '", input)' . '</code>', 'html' => true],
41
+            ['text' => '<span class="'.$labelClass.'">'.$row->type.'</span>', 'html' => true],
42
+            ['text' => '<code>'.($row->reg_cond == 0 ? '!' : null).'preg_match("'.$row->reg_exp.'", input)'.'</code>', 'html' => true],
43 43
             [
44
-                'text' => Url::link(['profile/fieldupdate', $row->id], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]) .
44
+                'text' => Url::link(['profile/fieldupdate', $row->id], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]).
45 45
                 Url::link(['profile/fielddelete', $row->id], '<i class="fa fa-trash-o fa-lg"></i>', ['html' => true]),
46 46
                 'html' => true,
47 47
                 'property' => ['class' => 'text-center']
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/field_delete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         'items' => [
36 36
             [['text' => $model->getLabel('name')], ['text' => $model->name[\App::$Request->getLanguage()]]],
37 37
             [['text' => $model->getLabel('type')], ['text' => $model->type]],
38
-            [['text' => $model->getLabel('reg_exp')], ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("'.$model->reg_exp.'", $input)']],
38
+            [['text' => $model->getLabel('reg_exp')], ['text' => ($model->reg_cond == 0 ? '!' : null).'preg_match("'.$model->reg_exp.'", $input)']],
39 39
         ]
40 40
     ]
41 41
 ]);
Please login to merge, or discard this patch.
Apps/View/Admin/default/application/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 <div class="row">
19 19
     <div class="col-md-12">
20 20
         <div class="pull-right">
21
-            <?= Url::link(['application/install'], '<i class="fa fa-tasks"></i> ' . __('Install'), ['class' => 'btn btn-primary']) ?>
21
+            <?= Url::link(['application/install'], '<i class="fa fa-tasks"></i> '.__('Install'), ['class' => 'btn btn-primary']) ?>
22 22
         </div>
23 23
     </div>
24 24
 </div>
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
         continue;
31 31
     }
32 32
 
33
-    $route = $app->sys_name . '/index';
33
+    $route = $app->sys_name.'/index';
34 34
     $icoStatus = null;
35 35
     $actions = \App::$View->render('native/macro/app_actions', ['controller' => $app->sys_name]);
36 36
     // set action icons based on app status
37
-    if ((int)$app->disabled !== 0) {
37
+    if ((int) $app->disabled !== 0) {
38 38
         $icoStatus = ' <i class="fa fa-pause" style="color: #ff0000;"></i>';
39 39
     } elseif ($app->checkVersion() !== true) {
40 40
         $icoStatus = ' <i class="fa fa-exclamation" style="color: #ffbd26;"></i>';
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
     }
45 45
 
46 46
     $appTableItems[] = [
47
-        ['text' => $app->id . $icoStatus, 'html' => true, '!secure' => true],
47
+        ['text' => $app->id.$icoStatus, 'html' => true, '!secure' => true],
48 48
         ['text' => Url::link([$route], $app->getLocaleName()), 'html' => true],
49
-        ['text' => '<a target="_blank" href="' . \App::$Alias->scriptUrl . '/' . Str::lowerCase($route) . '">' . $route . '</a>', 'html' => true],
49
+        ['text' => '<a target="_blank" href="'.\App::$Alias->scriptUrl.'/'.Str::lowerCase($route).'">'.$route.'</a>', 'html' => true],
50 50
         ['text' => $app->version],
51 51
         ['text' => Date::convertToDatetime($app->updated_at, Date::FORMAT_TO_HOUR)],
52 52
         ['text' => $actions, 'property' => ['class' => 'text-center'], 'html' => true]
Please login to merge, or discard this patch.
Apps/View/Admin/default/main/files.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@
 block discarded – undo
12 12
 \App::$Alias->setCustomLibrary('js', 'https://code.jquery.com/jquery-migrate-1.2.1.js');
13 13
 \App::$Alias->setCustomLibrary('css', \App::$Alias->getVendor('css', 'jquery-ui'));
14 14
 \App::$Alias->setCustomLibrary('js', \App::$Alias->getVendor('js', 'jquery-ui'));
15
-\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl . '/vendor/phpffcms/ffcms-elfinder/css/elfinder.min.css');
16
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/phpffcms/ffcms-elfinder/js/elfinder.min.js');
15
+\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl.'/vendor/phpffcms/ffcms-elfinder/css/elfinder.min.css');
16
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/phpffcms/ffcms-elfinder/js/elfinder.min.js');
17 17
 
18 18
 
19 19
 ?>
20 20
 <?php \App::$Alias->addPlainCode('js', '$().ready(function() {
21 21
         var elf = $("#elfinder").elfinder({
22
-            url : "' . $connector . '",  // connector URL (REQUIRED)
23
-            lang: "' . \App::$Request->getLanguage() . '",             // language (OPTIONAL)
22
+            url : "' . $connector.'",  // connector URL (REQUIRED)
23
+            lang: "' . \App::$Request->getLanguage().'",             // language (OPTIONAL)
24 24
         }).elfinder("instance");
25 25
     });'); ?>
26 26
 <h1><?= __('File management') ?></h1>
Please login to merge, or discard this patch.