Passed
Push — master ( 29baaf...069627 )
by Mihail
06:51
created
Apps/Controller/Admin/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $search = \Apps\ActiveRecord\App::getItem('app', $controller);
72 72
 
73 73
         // check what we got
74
-        if ($search === null || (int)$search->id < 1) {
74
+        if ($search === null || (int) $search->id < 1) {
75 75
             throw new ForbiddenException('App is not founded');
76 76
         }
77 77
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $search = \Apps\ActiveRecord\App::where('sys_name', '=', $controllerName)->where('type', '=', 'app')->first();
98 98
 
99
-        if ($search === null || (int)$search->id < 1) {
99
+        if ($search === null || (int) $search->id < 1) {
100 100
             throw new ForbiddenException('App is not founded');
101 101
         }
102 102
 
Please login to merge, or discard this patch.
Apps/View/Admin/default/layout/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
                         if ($item->type === 'app') {
160 160
                             $appControllers[] = $item->sys_name;
161 161
                             $appMenuItems[] = $menuItem;
162
-                        } elseif($item->type === 'widget') {
162
+                        } elseif ($item->type === 'widget') {
163 163
                             $widgetControllers[] = $item->sys_name;
164 164
                             $widgetMenuItems[] = $menuItem;
165 165
                         }
Please login to merge, or discard this patch.
Apps/View/Admin/default/widget/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     $route = $widget->sys_name . '/index';
27 27
     $icoStatus = null;
28 28
     $actions = $this->render('macro/widget_actions', ['controller' => $widget->sys_name]);
29
-    if ((int)$widget->disabled !== 0) {
29
+    if ((int) $widget->disabled !== 0) {
30 30
         $icoStatus = ' <i class="fa fa-pause" style="color: #ff0000;"></i>';
31 31
     } elseif ($widget->checkVersion() !== true) {
32 32
         $icoStatus = ' <i class="fa fa-exclamation" style="color: #ffbd26;"></i>';
Please login to merge, or discard this patch.