@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $search = \Apps\ActiveRecord\App::getItem('app', $controller); |
| 85 | 85 | |
| 86 | 86 | // check what we got |
| 87 | - if ($search === null || (int)$search->id < 1) { |
|
| 87 | + if ($search === null || (int) $search->id < 1) { |
|
| 88 | 88 | throw new NotFoundException('App is not founded'); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $search = \Apps\ActiveRecord\App::where('sys_name', $controllerName) |
| 117 | 117 | ->where('type', 'app') |
| 118 | 118 | ->first(); |
| 119 | - if (!$search || (int)$search->id < 1) { |
|
| 119 | + if (!$search || (int) $search->id < 1) { |
|
| 120 | 120 | throw new ForbiddenException('App is not founded'); |
| 121 | 121 | } |
| 122 | 122 | |