@@ -71,7 +71,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -159,7 +159,7 @@ |
||
| 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 | } |
@@ -26,7 +26,7 @@ |
||
| 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>'; |