Passed
Push — master ( ef8807...c1ca83 )
by Mihail
05:17
created
Apps/View/Admin/default/widget/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
 
32 32
 foreach ($widgets as $widget) {
33 33
     $controller = Str::lowerCase($widget->sys_name);
34
-    $route = $controller . '/index';
34
+    $route = $controller.'/index';
35 35
     $icoStatus = null;
36 36
     $actions = $this->fetch('widget/_actions', ['controller' => $controller]);
37
-    if ((bool)$widget->disabled) {
37
+    if ((bool) $widget->disabled) {
38 38
         $icoStatus = ' <i class="fa fa-pause" style="color: #ff0000;"></i>';
39 39
     } elseif (!$widget->checkVersion()) {
40 40
         $icoStatus = ' <i class="fa fa-exclamation-circle" style="color: #ffbd26;"></i>';
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     }
45 45
 
46 46
     $table->row([
47
-        ['text' => $widget->id . $icoStatus, 'html' => true],
47
+        ['text' => $widget->id.$icoStatus, 'html' => true],
48 48
         ['text' => Url::a([$route], $widget->getLocaleName()), 'html' => true],
49 49
         ['text' => $widget->version],
50 50
         ['text' => Date::convertToDatetime($widget->updated_at, Date::FORMAT_TO_HOUR)],
@@ -57,5 +57,5 @@  discard block
 block discarded – undo
57 57
     <?= $table->display() ?>
58 58
 </div>
59 59
 
60
-<?= Url::a(['widget/install'], '<i class="fa fa-tasks"></i> ' . __('Install'), ['class' => 'btn btn-primary', 'html' => true]) ?>
60
+<?= Url::a(['widget/install'], '<i class="fa fa-tasks"></i> '.__('Install'), ['class' => 'btn btn-primary', 'html' => true]) ?>
61 61
 <?php $this->stop() ?>
62 62
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Admin/default/widget/turn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         [['text' => __('Name')], ['text' => $widget->getLocaleName()]],
29 29
         [['text' => __('System name')], ['text' => $widget->sys_name]],
30 30
         [['text' => __('Last update')], ['text' => Date::convertToDatetime($widget->updated_at, Date::FORMAT_TO_SECONDS)]],
31
-        [['text' => __('Status')], ['text' => !(bool)$widget->disabled ? 'On' : 'Off'], 'properties' => ['class' =>  !(bool)$widget->disabled ? 'alert-success' : 'alert-danger']]
31
+        [['text' => __('Status')], ['text' => !(bool) $widget->disabled ? 'On' : 'Off'], 'properties' => ['class' =>  !(bool) $widget->disabled ? 'alert-success' : 'alert-danger']]
32 32
     ])->display() ?>
33 33
 </div>
34 34
 
Please login to merge, or discard this patch.
Apps/View/Admin/default/widget/_actions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 
5 5
 ?>
6 6
 <?php if (isset($controller)): ?>
7
-    <a href="<?= Url::to($controller . '/index') ?>"><i class="fa fa-cogs"></i></a>&nbsp;
7
+    <a href="<?= Url::to($controller.'/index') ?>"><i class="fa fa-cogs"></i></a>&nbsp;
8 8
     <a href="<?= Url::to('widget/turn', [$controller]) ?>"><i class="fa fa-power-off"></i></a>
9 9
 <?php endif; ?>
10 10
\ No newline at end of file
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
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         [['text' => __('Name')], ['text' => $app->getLocaleName()]],
29 29
         [['text' => __('System name')], ['text' => $app->sys_name]],
30 30
         [['text' => __('Last update')], ['text' => Date::convertToDatetime($app->updated_at, Date::FORMAT_TO_SECONDS)]],
31
-        [['text' => __('Status')], ['text' => !(bool)$app->disabled ? 'On' : 'Off'], 'properties' => ['class' =>  !(bool)$app->disabled ? 'alert-success' : 'alert-danger']]
31
+        [['text' => __('Status')], ['text' => !(bool) $app->disabled ? 'On' : 'Off'], 'properties' => ['class' =>  !(bool) $app->disabled ? 'alert-success' : 'alert-danger']]
32 32
     ])->display() ?>
33 33
 </div>
34 34
 
Please login to merge, or discard this patch.
Apps/View/Admin/default/_core/javascript/submit_selectize_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 /** @var array $url */
8 8
 /** @var array $properties */
9 9
 
10
-$rndId = 'btn_selectize_submit_' . mt_rand(999, 999999);
10
+$rndId = 'btn_selectize_submit_'.mt_rand(999, 999999);
11 11
 $properties['id'] = $rndId;
12 12
 
13 13
 echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function() use ($text) {
Please login to merge, or discard this patch.
Apps/Controller/Admin/User/ActionInviteList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $record = new Invite();
24 24
 
25 25
         // set current page num and offset
26
-        $page = (int)$this->request->query->get('page', 0);
26
+        $page = (int) $this->request->query->get('page', 0);
27 27
         $offset = $page * self::ITEM_PER_PAGE;
28 28
 
29 29
         // prepare pagination data
Please login to merge, or discard this patch.
Extend/Core/Arch/AdminController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,18 +91,18 @@  discard block
 block discarded – undo
91 91
         $user = App::$User->identity();
92 92
         // user is not authed ?
93 93
         if ($user === null || !App::$User->isAuth()) {
94
-            $redirectUrl = App::$Alias->scriptUrl . '/user/login';
94
+            $redirectUrl = App::$Alias->scriptUrl.'/user/login';
95 95
             App::$Response->redirect($redirectUrl, true);
96 96
             exit();
97 97
         }
98 98
 
99
-        $permission = env_name . '/' . App::$Request->getController() . '/' . App::$Request->getAction();
99
+        $permission = env_name.'/'.App::$Request->getController().'/'.App::$Request->getAction();
100 100
 
101 101
         // doesn't have permission? get the f*ck out
102 102
         if (!$user->role->can($permission)) {
103 103
             App::$Session->invalidate();
104 104
 
105
-            $redirectUrl = App::$Alias->scriptUrl . '/user/login';
105
+            $redirectUrl = App::$Alias->scriptUrl.'/user/login';
106 106
             App::$Response->redirect($redirectUrl, true);
107 107
             exit();
108 108
         }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function getConfigs(): ?array
153 153
     {
154
-        $configs = $this->type === 'widget' ? (array)$this->widget->configs : (array)$this->application->configs;
154
+        $configs = $this->type === 'widget' ? (array) $this->widget->configs : (array) $this->application->configs;
155 155
         foreach ($configs as $cfg => $value) {
156 156
             if (Any::isInt($value)) {
157 157
                 $configs[$cfg] = $value;
Please login to merge, or discard this patch.
Apps/View/Front/default/_core/javascript/submit_selectize_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 /** @var array $url */
8 8
 /** @var array $properties */
9 9
 
10
-$rndId = 'btn_selectize_submit_' . mt_rand(999, 999999);
10
+$rndId = 'btn_selectize_submit_'.mt_rand(999, 999999);
11 11
 $properties['id'] = $rndId;
12 12
 
13 13
 echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function() use ($text) {
Please login to merge, or discard this patch.
Apps/View/Front/default/_core/exceptions/forbidden.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$this->layout('_layouts/default',[
3
+$this->layout('_layouts/default', [
4 4
     'title' => 'Access forbidden'
5 5
 ]);
6 6
 
Please login to merge, or discard this patch.