@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | public function actionFiles(): ?string |
51 | 51 | { |
52 | 52 | return $this->view->render('main/files', [ |
53 | - 'connector' => App::$Alias->scriptUrl . '/api/main/files?lang=' . $this->request->getLanguage() |
|
53 | + 'connector' => App::$Alias->scriptUrl.'/api/main/files?lang='.$this->request->getLanguage() |
|
54 | 54 | ]); |
55 | 55 | } |
56 | 56 | |
@@ -115,9 +115,9 @@ discard block |
||
115 | 115 | */ |
116 | 116 | public function actionDeleteroute(): ?string |
117 | 117 | { |
118 | - $type = (string)$this->request->query->get('type'); |
|
119 | - $loader = (string)$this->request->query->get('loader'); |
|
120 | - $source = Str::lowerCase((string)$this->request->query->get('path')); |
|
118 | + $type = (string) $this->request->query->get('type'); |
|
119 | + $loader = (string) $this->request->query->get('loader'); |
|
120 | + $source = Str::lowerCase((string) $this->request->query->get('path')); |
|
121 | 121 | |
122 | 122 | $model = new EntityDeleteRoute($type, $loader, $source); |
123 | 123 | if ($model->send() && $model->validate()) { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | <?php $this->start('body') ?> |
17 | 17 | <h1><?= __('Antivirus scan'); ?></h1> |
18 | 18 | <hr /> |
19 | -<p><?= __('FFCMS 3 provide a simple signature-based antivirus software') . '. ' . __('Remember! This is just an advisory algorithm!') ?></p> |
|
19 | +<p><?= __('FFCMS 3 provide a simple signature-based antivirus software').'. '.__('Remember! This is just an advisory algorithm!') ?></p> |
|
20 | 20 | |
21 | 21 | <div class="row mb-2"> |
22 | 22 | <div class="col-md-8"> |
@@ -92,6 +92,6 @@ |
||
92 | 92 | </div> |
93 | 93 | <?php if (!$aliasExist && !$callbackExist): ?> |
94 | 94 | <p class="alert alert-warning"><?= __('Custom routes is not yet found') ?></p> |
95 | -<?php endif ;?> |
|
96 | -<?= Url::a(['main/addroute'], '<i class="fa fa-plus"></i> ' . __('New route'), ['class' => 'btn btn-primary', 'html' => true]) ?> |
|
95 | +<?php endif; ?> |
|
96 | +<?= Url::a(['main/addroute'], '<i class="fa fa-plus"></i> '.__('New route'), ['class' => 'btn btn-primary', 'html' => true]) ?> |
|
97 | 97 | <?php $this->stop() ?> |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | <div class="media-left"> |
171 | 171 | <a href="#"> |
172 | 172 | <?php |
173 | - $commentAva = \App::$Alias->scriptUrl . '/upload/user/avatar/small/default.jpg'; |
|
173 | + $commentAva = \App::$Alias->scriptUrl.'/upload/user/avatar/small/default.jpg'; |
|
174 | 174 | if ($comment->user !== null && $comment->user->id > 0) { |
175 | 175 | $commentAva = $comment->user->profile->getAvatarUrl('small'); |
176 | 176 | } |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | </li> |
238 | 238 | <li class="nav-item<?= (\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? ' active' : null ?>"> |
239 | 239 | <?= Url::a(['#system-dropdown'], |
240 | - '<i class="fa fa-fire"></i> <span class="nav-text">' . __('System') . '</span>', |
|
240 | + '<i class="fa fa-fire"></i> <span class="nav-text">'.__('System').'</span>', |
|
241 | 241 | [ |
242 | 242 | 'class' => 'nav-container', |
243 | 243 | 'data-toggle' => 'collapse', |
@@ -245,13 +245,13 @@ discard block |
||
245 | 245 | ]) |
246 | 246 | ?> |
247 | 247 | |
248 | - <?= $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? 'in show' : null), 'id' => 'system-dropdown']) |
|
249 | - ->menu(['link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true]) |
|
250 | - ->menu(['link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> ' . __('Files'), 'html' => true]) |
|
251 | - ->menu(['link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> ' . __('Antivirus'), 'html' => true]) |
|
252 | - ->menu(['link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> ' . __('Routing'), 'html' => true]) |
|
253 | - ->menu(['link' => ['main/backup'], 'text' => '<i class="fa fa-hdd-o"></i> ' . __('Backup'), 'html' => true]) |
|
254 | - ->menu(['link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> ' . __('Updates'), 'html' => true]) |
|
248 | + <?= $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? 'in show' : null), 'id' => 'system-dropdown']) |
|
249 | + ->menu(['link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true]) |
|
250 | + ->menu(['link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> '.__('Files'), 'html' => true]) |
|
251 | + ->menu(['link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> '.__('Antivirus'), 'html' => true]) |
|
252 | + ->menu(['link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> '.__('Routing'), 'html' => true]) |
|
253 | + ->menu(['link' => ['main/backup'], 'text' => '<i class="fa fa-hdd-o"></i> '.__('Backup'), 'html' => true]) |
|
254 | + ->menu(['link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> '.__('Updates'), 'html' => true]) |
|
255 | 255 | ->display(); |
256 | 256 | ?> |
257 | 257 | </li> |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | ?> |
270 | 270 | <li class="nav-item<?= array_key_exists(\App::$Request->getController(), $apps) ? ' active' : null ?>"> |
271 | 271 | <?= Url::a(['#apps-dropdown'], |
272 | - '<i class="fa fa-plug"></i> <span class="nav-text">' . __('Applications') . '</span>', |
|
272 | + '<i class="fa fa-plug"></i> <span class="nav-text">'.__('Applications').'</span>', |
|
273 | 273 | [ |
274 | 274 | 'class' => 'nav-container', |
275 | 275 | 'data-toggle' => 'collapse', |
@@ -278,18 +278,18 @@ discard block |
||
278 | 278 | ?> |
279 | 279 | |
280 | 280 | <?php |
281 | - $appMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . (array_key_exists(\App::$Request->getController(), $apps) ? 'in show' : null), 'id' => 'apps-dropdown']); |
|
281 | + $appMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.(array_key_exists(\App::$Request->getController(), $apps) ? 'in show' : null), 'id' => 'apps-dropdown']); |
|
282 | 282 | foreach ($apps as $app) { |
283 | 283 | /** @var \Apps\ActiveRecord\App $app */ |
284 | - $appMenu->menu(['link' => [Str::lowerCase($app->sys_name) . '/index'], 'text' => $app->getLocaleName()]); |
|
284 | + $appMenu->menu(['link' => [Str::lowerCase($app->sys_name).'/index'], 'text' => $app->getLocaleName()]); |
|
285 | 285 | } |
286 | - $appMenu->menu(['link' => 'application/index', 'text' => __('All apps') . '...']); |
|
286 | + $appMenu->menu(['link' => 'application/index', 'text' => __('All apps').'...']); |
|
287 | 287 | echo $appMenu->display(); |
288 | 288 | ?> |
289 | 289 | </li> |
290 | 290 | <li class="nav-item<?= array_key_exists(\App::$Request->getController(), $widgets) ? ' active' : null ?>"> |
291 | 291 | <?= Url::a(['#widgets-dropdown'], |
292 | - '<i class="fa fa-puzzle-piece"></i> <span class="nav-text">' . __('Widgets') . '</span>', |
|
292 | + '<i class="fa fa-puzzle-piece"></i> <span class="nav-text">'.__('Widgets').'</span>', |
|
293 | 293 | [ |
294 | 294 | 'class' => 'nav-container', |
295 | 295 | 'data-toggle' => 'collapse', |
@@ -298,12 +298,12 @@ discard block |
||
298 | 298 | ?> |
299 | 299 | |
300 | 300 | <?php |
301 | - $widgetMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . (array_key_exists(\App::$Request->getController(), $widgets) ? 'in show' : null), 'id' => 'widgets-dropdown']); |
|
301 | + $widgetMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.(array_key_exists(\App::$Request->getController(), $widgets) ? 'in show' : null), 'id' => 'widgets-dropdown']); |
|
302 | 302 | foreach ($widgets as $widget) { |
303 | 303 | /** @var \Apps\ActiveRecord\App $widget */ |
304 | - $widgetMenu->menu(['link' => [Str::lowerCase($widget->sys_name) . '/index'], 'text' => $widget->getLocaleName()]); |
|
304 | + $widgetMenu->menu(['link' => [Str::lowerCase($widget->sys_name).'/index'], 'text' => $widget->getLocaleName()]); |
|
305 | 305 | } |
306 | - $widgetMenu->menu(['link' => 'widget/index', 'text' => __('All widgets') . '...']); |
|
306 | + $widgetMenu->menu(['link' => 'widget/index', 'text' => __('All widgets').'...']); |
|
307 | 307 | echo $widgetMenu->display(); |
308 | 308 | ?> |
309 | 309 | </li> |