Passed
Push — master ( 0a3787...bc905b )
by Mihail
06:05
created
Apps/Controller/Admin/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.