Passed
Push — master ( 4af99e...4a867a )
by Mihail
16:55 queued 03:08
created
Apps/View/Admin/default/content/index.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
                     <span class="sr-only">Toggle Dropdown</span>
35 35
                 </button>
36 36
                 <ul class="dropdown-menu" role="menu">
37
-                    <li><?= Url::link(['content/index', null, null, ['type' => 'all']], '<i class="fa fa-list"></i> ' . __('All')) ?></li>
38
-                    <li><?= Url::link(['content/index', null, null, ['type' => 'moderate']], '<i class="fa fa-exclamation"></i> ' . __('Moderate')) ?></li>
39
-                    <li><?= Url::link(['content/index', null, null, ['type' => 'trash']], '<i class="fa fa-trash"></i> ' . __('Trash')) ?></li>
37
+                    <li><?= Url::link(['content/index', null, null, ['type' => 'all']], '<i class="fa fa-list"></i> '.__('All')) ?></li>
38
+                    <li><?= Url::link(['content/index', null, null, ['type' => 'moderate']], '<i class="fa fa-exclamation"></i> '.__('Moderate')) ?></li>
39
+                    <li><?= Url::link(['content/index', null, null, ['type' => 'trash']], '<i class="fa fa-trash"></i> '.__('Trash')) ?></li>
40 40
                     <li>
41 41
                         <a class="trigger right-caret"><i class="fa fa-table"></i> <?= __('Categories') ?></a>
42 42
                         <ul class="dropdown-menu sub-menu">
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
         </div>
51 51
         <?php
52 52
         if ($type === 'trash') {
53
-            echo Url::link(['content/clear'], '<i class="fa fa-minus"></i> ' . __('Remove all'), ['class' => 'btn btn-danger pull-right']);
53
+            echo Url::link(['content/clear'], '<i class="fa fa-minus"></i> '.__('Remove all'), ['class' => 'btn btn-danger pull-right']);
54 54
         } else {
55
-            echo Url::link(['content/update', 0], '<i class="fa fa-plus"></i> ' . __('Add content'), ['class' => 'btn btn-primary pull-right']);
55
+            echo Url::link(['content/update', 0], '<i class="fa fa-plus"></i> '.__('Add content'), ['class' => 'btn btn-primary pull-right']);
56 56
         }
57 57
         ?>
58 58
     </div>
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 <?php
62 62
 
63 63
 if ($records->count() < 1) {
64
-    echo '<p class="alert alert-warning">' . __('Content is not found') . '</p>';
64
+    echo '<p class="alert alert-warning">'.__('Content is not found').'</p>';
65 65
     return;
66 66
 }
67 67
 
@@ -72,16 +72,16 @@  discard block
 block discarded – undo
72 72
     if ($content->getCategory() === null) {
73 73
         continue;
74 74
     }
75
-    $frontLink = \App::$Alias->scriptUrl . '/content/read';
75
+    $frontLink = \App::$Alias->scriptUrl.'/content/read';
76 76
     $frontPath = null;
77 77
     if (!Str::likeEmpty($content->getCategory()->path)) {
78
-        $frontLink .= '/' . $content->getCategory()->path;
79
-        $frontPath .= '/' . $content->getCategory()->path;
78
+        $frontLink .= '/'.$content->getCategory()->path;
79
+        $frontPath .= '/'.$content->getCategory()->path;
80 80
     }
81
-    $frontLink .= '/' . $content->path;
82
-    $frontPath .= '/' . $content->path;
81
+    $frontLink .= '/'.$content->path;
82
+    $frontPath .= '/'.$content->path;
83 83
     $frontPath = Str::sub($frontPath, 0, 30);
84
-    $actionIcons = '<a href="' . $frontLink . '" target="_blank"><i class="fa fa-eye fa-lg"></i></a> ';
84
+    $actionIcons = '<a href="'.$frontLink.'" target="_blank"><i class="fa fa-eye fa-lg"></i></a> ';
85 85
     $actionIcons .= Url::link(['content/update', $content->id], '<i class="fa fa-pencil fa-lg"></i> ');
86 86
     if ($type === 'trash') {
87 87
         $actionIcons .= Url::link(['content/restore', $content->id], '<i class="fa fa-refresh fa-lg"></i>');
@@ -89,19 +89,19 @@  discard block
 block discarded – undo
89 89
         $actionIcons .= Url::link(['content/delete', $content->id], '<i class="fa fa-trash-o fa-lg"></i>');
90 90
     }
91 91
 
92
-    if (!(bool)$content->display) {
92
+    if (!(bool) $content->display) {
93 93
         $moderate = true;
94 94
     }
95 95
 
96 96
     $items[] = [
97
-        'property' => ['class' => 'checkbox-row' . (!(bool)$content->display ? ' alert-warning' : null)],
97
+        'property' => ['class' => 'checkbox-row'.(!(bool) $content->display ? ' alert-warning' : null)],
98 98
         1 => ['text' => $content->id, 'html' => true, '!secure' => true],
99
-        2 => ['text' => (!(bool)$content->display ? '<i class="fa fa-exclamation text-warning"></i> ' : null) .
100
-            Url::link(['content/update', $content->id], $content->getLocaled('title')) .
101
-            ((bool)$content->important ? ' <i class="glyphicon glyphicon-fire"></i>' : null),
99
+        2 => ['text' => (!(bool) $content->display ? '<i class="fa fa-exclamation text-warning"></i> ' : null).
100
+            Url::link(['content/update', $content->id], $content->getLocaled('title')).
101
+            ((bool) $content->important ? ' <i class="glyphicon glyphicon-fire"></i>' : null),
102 102
             'html' => true],
103 103
         3 => ['text' => $content->getCategory()->getLocaled('title')],
104
-        4 =>['text' => '<a href="' . $frontLink . '" target="_blank">' . $frontPath . '</a>', 'html' => true],
104
+        4 =>['text' => '<a href="'.$frontLink.'" target="_blank">'.$frontPath.'</a>', 'html' => true],
105 105
         5 => ['text' => Date::convertToDatetime($content->updated_at, Date::FORMAT_TO_SECONDS)],
106 106
         6 => ['text' => $actionIcons, 'html' => true, 'property' => ['class' => 'text-center']]
107 107
     ];
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/category_list.php 1 patch
Spacing   +3 added lines, -3 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(['content/categoryupdate', 0], '<i class="fa fa-plus"></i> ' . __('Add category'), ['class' => 'btn btn-primary pull-right']) ?>
26
+        <?= Url::link(['content/categoryupdate', 0], '<i class="fa fa-plus"></i> '.__('Add category'), ['class' => 'btn btn-primary pull-right']) ?>
27 27
     </div>
28 28
 </div>
29 29
 <div class="table-responsive">
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
             <tr>
55 55
                 <td>
56 56
                     <div class="row">
57
-                        <div class="col-md-<?= $offset ?> col-xs-<?= $offset+2 ?>" style="padding-top: 8px;border-bottom: 2px solid #8a8a8a"></div>
58
-                        <div class="col-md-<?= $set ?> col-xs-<?= $set-2 ?>">
57
+                        <div class="col-md-<?= $offset ?> col-xs-<?= $offset + 2 ?>" style="padding-top: 8px;border-bottom: 2px solid #8a8a8a"></div>
58
+                        <div class="col-md-<?= $set ?> col-xs-<?= $set - 2 ?>">
59 59
                             <?= $row->getLocaled('title') ?>
60 60
                             <sup>id: <?= $row->id ?></sup>
61 61
                             <span class="label label-info">/<?= $row->path ?></span>
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/content_update.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 foreach (\App::$Properties->get('languages') as $lang) {
43 43
     $generalItems[] = [
44 44
         'type' => 'tab',
45
-        'text' => __('Lang') . ': ' . Str::upperCase($lang),
46
-        'content' => $form->field('title.' . $lang, 'text', ['class' => 'form-control'], __('Please, enter the title of your material for current language locale'), 'content/form/tab_content_update') .
47
-            $form->field('text.' . $lang, 'textarea', ['class' => 'form-control wysiwyg', 'rows' => 7, 'html' => true], null, 'content/form/tab_content_update'),
45
+        'text' => __('Lang').': '.Str::upperCase($lang),
46
+        'content' => $form->field('title.'.$lang, 'text', ['class' => 'form-control'], __('Please, enter the title of your material for current language locale'), 'content/form/tab_content_update').
47
+            $form->field('text.'.$lang, 'textarea', ['class' => 'form-control wysiwyg', 'rows' => 7, 'html' => true], null, 'content/form/tab_content_update'),
48 48
         'html' => true,
49 49
         'active' => $lang === \App::$Request->getLanguage(),
50 50
         '!secure' => true
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
 
53 53
     $propertiesItems[] = [
54 54
         'type' => 'tab',
55
-        'text' => __('Lang') . ': ' . Str::upperCase($lang),
56
-        'content' => $form->field('metaTitle.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param title for page title. Recoomended: 50-70 characters')) .
57
-            $form->field('metaKeywords.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param keywords for this content, separated by comma. Example: home, door, dog')) .
58
-            $form->field('metaDescription.' . $lang, 'text', ['class' => 'form-control'], __('Enter meta param description for this content. Recommended is 100-150 characters')),
55
+        'text' => __('Lang').': '.Str::upperCase($lang),
56
+        'content' => $form->field('metaTitle.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param title for page title. Recoomended: 50-70 characters')).
57
+            $form->field('metaKeywords.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param keywords for this content, separated by comma. Example: home, door, dog')).
58
+            $form->field('metaDescription.'.$lang, 'text', ['class' => 'form-control'], __('Enter meta param description for this content. Recommended is 100-150 characters')),
59 59
         'html' => true,
60 60
         '!secure' => true,
61 61
         'active' => $lang === \App::$Request->getLanguage()
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     <div class="dropzone dropzone-previews" id="ffcms-dropzone"></div>
92 92
 </div>
93 93
 <div class="col-md-4">
94
-    ' . $form->field('poster', 'select', ['options' => [__('Not selected...')], 'class' => 'form-control'], __('Select image from gallery as a poster for this content')) . '
94
+    ' . $form->field('poster', 'select', ['options' => [__('Not selected...')], 'class' => 'form-control'], __('Select image from gallery as a poster for this content')).'
95 95
 </div>
96 96
 </div><br/><br/>';
97 97
 ?>
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         ['type' => 'tab', 'text' => __('Gallery'), 'content' => $galleryTab, 'html' => true, '!secure' => true],
105 105
         ['type' => 'tab', 'text' => __('Other'), 'content' => $otherTab, 'html' => true, '!secure' => true]
106 106
     ]
107
-]);?>
107
+]); ?>
108 108
 
109 109
 <?= $form->field('galleryFreeId', 'hidden') ?>
110 110
 <?= $form->submitButton(__('Save'), ['class' => 'btn btn-primary']) ?>&nbsp;
@@ -113,14 +113,14 @@  discard block
 block discarded – undo
113 113
 
114 114
 <?php
115 115
 // load max length display plugin
116
-\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl . '/assets/js/plugins/maxlength.js');
116
+\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl.'/assets/js/plugins/maxlength.js');
117 117
 // load datapicker plugin
118
-\App::$Alias->setCustomLibrary('css', \App::$Alias->currentViewUrl . '/assets/css/plugins/datapick/datapick.css');
119
-\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl . '/assets/js/plugins/datapick.js');
118
+\App::$Alias->setCustomLibrary('css', \App::$Alias->currentViewUrl.'/assets/css/plugins/datapick/datapick.css');
119
+\App::$Alias->setCustomLibrary('js', \App::$Alias->currentViewUrl.'/assets/js/plugins/datapick.js');
120 120
 // load jquery-upload plugin
121
-\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl . '/vendor/bower/dropzone/dist/min/dropzone.min.css');
122
-\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl . '/vendor/bower/dropzone/dist/min/basic.min.css');
123
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/bower/dropzone/dist/min/dropzone.min.js');
121
+\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl.'/vendor/bower/dropzone/dist/min/dropzone.min.css');
122
+\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl.'/vendor/bower/dropzone/dist/min/basic.min.css');
123
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/bower/dropzone/dist/min/dropzone.min.js');
124 124
 ?>
125 125
 
126 126
 <script>
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         var DropzoneFiles = [];
217 217
         $('#ffcms-dropzone').dropzone({
218 218
             url: script_url + '/api/content/galleryupload/<?= $model->galleryFreeId ?>?lang=' + script_lang,
219
-            dictDefaultMessage: '<?= __('Drop files here to upload in gallery') . '<br />' . __('(or click here)') ?>',
219
+            dictDefaultMessage: '<?= __('Drop files here to upload in gallery').'<br />'.__('(or click here)') ?>',
220 220
             acceptedFiles: ".jpeg,.jpg,.png,.gif,.webp",
221 221
             addRemoveLinks: true,
222 222
             removedfile: function (file) { // file remove click, lets try to remove file from server & make visual changes
Please login to merge, or discard this patch.
Apps/View/Admin/default/user/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
             3 => ['text' => $user->login],
31 31
             4 => ['text' => $user->role->name],
32 32
             5 => ['text' => Date::convertToDatetime($user->created_at, Date::FORMAT_TO_DAY)],
33
-            6 => ['text' => Url::link(['user/update', $user->id], '<i class="fa fa-pencil fa-lg"></i>') .
33
+            6 => ['text' => Url::link(['user/update', $user->id], '<i class="fa fa-pencil fa-lg"></i>').
34 34
                 Url::link(['user/delete', $user->id], ' <i class="fa fa-trash-o fa-lg"></i>'),
35 35
                 'html' => true, 'property' => ['class' => 'text-center']],
36 36
             'property' => [
37
-                'class' => 'checkbox-row' . ($user->approve_token != '0' ? ' alert-warning' : null)
37
+                'class' => 'checkbox-row'.($user->approve_token != '0' ? ' alert-warning' : null)
38 38
             ]
39 39
         ];
40 40
     }
Please login to merge, or discard this patch.
Apps/View/Admin/default/main/files.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 // add library
12 12
 \App::$Alias->setCustomLibrary('css', \App::$Alias->getVendor('css', 'jquery-ui'));
13 13
 \App::$Alias->setCustomLibrary('js', \App::$Alias->getVendor('js', 'jquery-ui'));
14
-\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl . '/vendor/studio-42/elfinder/css/elfinder.min.css');
15
-\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/studio-42/elfinder/js/elfinder.min.js');
14
+\App::$Alias->setCustomLibrary('css', \App::$Alias->scriptUrl.'/vendor/studio-42/elfinder/css/elfinder.min.css');
15
+\App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/studio-42/elfinder/js/elfinder.min.js');
16 16
 if (\App::$Request->getLanguage() !== 'en') {
17
-    \App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl . '/vendor/studio-42/elfinder/js/i18n/elfinder.' . \App::$Request->getLanguage() . '.js');
17
+    \App::$Alias->setCustomLibrary('js', \App::$Alias->scriptUrl.'/vendor/studio-42/elfinder/js/i18n/elfinder.'.\App::$Request->getLanguage().'.js');
18 18
 }
19 19
 ?>
20 20
 
Please login to merge, or discard this patch.
Apps/View/Admin/default/main/settings.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
 $themeTab = $form->field->select('theme.Front', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Front')], __('Set theme for user part of website'));
32 32
 $themeTab .= $form->field->select('theme.Admin', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Admin')], __('Set theme for admin panel'));
33 33
 
34
-$debugTab = '<p>' . __('The key-value of cookie to enable debugging on website') . '. ' . __('If user got this cookie he can see debug bar') . '. ' .
35
-    Url::link(['main/debugcookie'], __('Set cookie for me')) . '</p>';
34
+$debugTab = '<p>'.__('The key-value of cookie to enable debugging on website').'. '.__('If user got this cookie he can see debug bar').'. '.
35
+    Url::link(['main/debugcookie'], __('Set cookie for me')).'</p>';
36 36
 $debugTab .= $form->field->text('debug.cookie.key', ['class' => 'form-control'], __('Set cookie name(key) for enable debug bar panel'));
37 37
 $debugTab .= $form->field->text('debug.cookie.value', ['class' => 'form-control'], __('Set cookie value for enable debug bar panel'));
38 38
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 $langTab .= $form->field('baseLanguage', 'text', ['class' => 'form-control', 'disabled' => null], __('Website base script language. Do not change it'));
42 42
 $langTab .= $form->field('languages', 'checkboxes', ['options' => App::$Translate->getAvailableLangs()], __('Website available languages'));
43 43
 
44
-$databaseTab = '<p>' . __('Do not change any information in this tab if you not sure what you do!') . '</p>';
44
+$databaseTab = '<p>'.__('Do not change any information in this tab if you not sure what you do!').'</p>';
45 45
 $databaseTab .= $form->field('database.driver', 'select', ['class' => 'form-control', 'options' => ['mysql', 'sqlite', 'pgsql']], __('Database connection driver'));
46 46
 $databaseTab .= $form->field('database.host', 'text', ['class' => 'form-control'], __('Database connection host name'));
47 47
 $databaseTab .= $form->field('database.database', 'text', ['class' => 'form-control'], __('Database name or path to sqlite created file database'));
@@ -51,14 +51,14 @@  discard block
 block discarded – undo
51 51
 $databaseTab .= $form->field('database.collation', 'text', ['class' => 'form-control']);
52 52
 $databaseTab .= $form->field('database.prefix', 'text', ['class' => 'form-control'], __('Database tables prefix'));
53 53
 
54
-$mailTab = '<p>' . __('Configure sendmail over smtp server. You should set host:port and auth data for your smtp server') . '</p>';
54
+$mailTab = '<p>'.__('Configure sendmail over smtp server. You should set host:port and auth data for your smtp server').'</p>';
55 55
 $mailTab .= $form->field->text('mail.host', ['class' => 'form-control'], __('Set SMTP hostname or ip'));
56 56
 $mailTab .= $form->field->text('mail.port', ['class' => 'form-control'], __('Set SMTP connection port'));
57 57
 $mailTab .= $form->field->select('mail.encrypt', ['class' => 'form-control', 'options' => ['tls', 'ssl', 'none']], __('Set encryption method for your smtp server. For remote service we are strongly recommend use tls/ssl encryption'));
58 58
 $mailTab .= $form->field->text('mail.user', ['class' => 'form-control'], __('Set auth user name if required'));
59 59
 $mailTab .= $form->field->text('mail.password', ['class' => 'form-control'], __('Set auth user password if exist'));
60 60
 
61
-$otherTab = '<p>' . __('There you can change specified configs depends of other platforms. GA = google analytics.') . '</p>';
61
+$otherTab = '<p>'.__('There you can change specified configs depends of other platforms. GA = google analytics.').'</p>';
62 62
 $otherTab .= $form->field('gaClientId', 'text', ['class' => 'form-control'], __('Google oAuth2 client id. This id will be used to display google.analytics info. Client ID looks like: xxxxxx.apps.googleusercontent.com'));
63 63
 $otherTab .= $form->field('gaTrackId', 'text', ['class' => 'form-control'], __('Set google analytics tracking id for your website. Track id looks like: UA-XXXXXX-Y'));
64 64
 $otherTab .= $form->field('trustedProxy', 'text', ['class' => 'form-control'], __('Set trusted proxy list to accept X-FORWARDED data. Example: 103.21.244.15,103.22.200.0/22'));
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="glyphicon glyphicon-tasks"></i> ' . __('Install'), ['class' => 'btn btn-primary']) ?>
21
+            <?= Url::link(['application/install'], '<i class="glyphicon glyphicon-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="glyphicon glyphicon-pause" style="color: #ff0000;"></i>';
39 39
     } elseif ($app->checkVersion() !== true) {
40 40
         $icoStatus = ' <i class="glyphicon glyphicon-exclamation-sign" 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/application/turn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             [['text' => __('Name')], ['text' => $app->getLocaleName()]],
35 35
             [['text' => __('System name')], ['text' => $app->sys_name]],
36 36
             [['text' => __('Last update')], ['text' => Date::convertToDatetime($app->updated_at, Date::FORMAT_TO_SECONDS)]],
37
-            [['text' => __('Status')], ['text' => ((int)$app->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' =>  ((int)$app->disabled === 0) ? 'alert-success' : 'alert-danger']]
37
+            [['text' => __('Status')], ['text' => ((int) $app->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' =>  ((int) $app->disabled === 0) ? 'alert-success' : 'alert-danger']]
38 38
         ]
39 39
     ]
40 40
 ]); ?>
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
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     <?php
26 26
     $customCssCode = \App::$View->showPlainCode('css');
27 27
     if ($customCssCode !== null) {
28
-        echo '<style>' . $customCssCode . '</style>';
28
+        echo '<style>'.$customCssCode.'</style>';
29 29
     } ?>
30 30
     <script>
31 31
         var script_url = '<?= \App::$Alias->scriptUrl ?>';
@@ -122,11 +122,11 @@  discard block
 block discarded – undo
122 122
                             'type' => 'ul',
123 123
                             'property' => ['class' => 'nav nav-second-level'],
124 124
                             'items' => [
125
-                                ['type' => 'link', 'link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true],
126
-                                ['type' => 'link', 'link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> ' . __('Files'), 'html' => true],
127
-                                ['type' => 'link', 'link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> ' . __('Antivirus'), 'html' => true],
128
-                                ['type' => 'link', 'link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> ' . __('Routing'), 'html' => true],
129
-                                ['type' => 'link', 'link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> ' . __('Updates'), 'html' => true]
125
+                                ['type' => 'link', 'link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true],
126
+                                ['type' => 'link', 'link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> '.__('Files'), 'html' => true],
127
+                                ['type' => 'link', 'link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> '.__('Antivirus'), 'html' => true],
128
+                                ['type' => 'link', 'link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> '.__('Routing'), 'html' => true],
129
+                                ['type' => 'link', 'link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> '.__('Updates'), 'html' => true]
130 130
                             ]
131 131
                         ]) ?>
132 132
                         <!-- /.nav-second-level -->
@@ -146,22 +146,22 @@  discard block
 block discarded – undo
146 146
                     foreach ($extTable as $item) {
147 147
                         $menuItem = [
148 148
                             'type' => 'link',
149
-                            'link' => [Str::lowerCase($item->sys_name) . '/index'],
150
-                            'text' => $item->getLocaleName() . (!$item->checkVersion() ? ' <i class="fa fa-wrench" style="color: #ffbd26;"></i>' : null),
149
+                            'link' => [Str::lowerCase($item->sys_name).'/index'],
150
+                            'text' => $item->getLocaleName().(!$item->checkVersion() ? ' <i class="fa fa-wrench" style="color: #ffbd26;"></i>' : null),
151 151
                             'html' => true
152 152
                         ];
153 153
                         if ($item->type === 'app') {
154 154
                             $appControllers[] = $item->sys_name;
155 155
                             $appMenuItems[] = $menuItem;
156
-                        } elseif($item->type === 'widget') {
156
+                        } elseif ($item->type === 'widget') {
157 157
                             $widgetControllers[] = $item->sys_name;
158 158
                             $widgetMenuItems[] = $menuItem;
159 159
                         }
160 160
                     }
161 161
 
162
-                    $appMenuItems[] = ['type' => 'link', 'link' => ['application/index'], 'text' => __('All apps') . '...'];
162
+                    $appMenuItems[] = ['type' => 'link', 'link' => ['application/index'], 'text' => __('All apps').'...'];
163 163
                     $appControllers[] = 'Application';
164
-                    $widgetMenuItems[] = ['type' => 'link', 'link' => ['widget/index'], 'text' => __('All widgets') . '...'];
164
+                    $widgetMenuItems[] = ['type' => 'link', 'link' => ['widget/index'], 'text' => __('All widgets').'...'];
165 165
                     $widgetControllers[] = 'Widget';
166 166
                     ?>
167 167
                     <li<?= Arr::in(\App::$Request->getController(), $appControllers) ? ' class="active"' : null ?>>
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
                             echo $body;
223 223
                         } else {
224 224
                             \App::$Response->setStatusCode(404);
225
-                            echo '<p>' . __('Page is not founded!') . '</p>';
225
+                            echo '<p>'.__('Page is not founded!').'</p>';
226 226
                         }
227 227
                         ?>
228 228
                     </article>
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 <?php
255 255
 $customJsCode = \App::$View->showPlainCode('js');
256 256
 if ($customJsCode !== null) {
257
-    echo '<script>' . $customJsCode . '</script>';
257
+    echo '<script>'.$customJsCode.'</script>';
258 258
 }
259 259
 ?>
260 260
 </body>
Please login to merge, or discard this patch.