@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * |
| 217 | 217 | * This is the getter for the `$app->user` property. |
| 218 | 218 | * |
| 219 | - * @param Core|CoreBindings|\ICanBoogie\Binding\ActiveRecord\CoreBindings $app |
|
| 219 | + * @param Core $app |
|
| 220 | 220 | * |
| 221 | 221 | * @return User The user object, or guest user object. |
| 222 | 222 | */ |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | /** |
| 276 | 276 | * Checks if a user has a given permission. |
| 277 | 277 | * |
| 278 | - * @param Core|CoreBindings $app |
|
| 278 | + * @param Core $app |
|
| 279 | 279 | * @param User $user |
| 280 | 280 | * @param string $permission |
| 281 | 281 | * @param string $target |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | /** |
| 293 | 293 | * Checks if a user has the ownership of a record. |
| 294 | 294 | * |
| 295 | - * @param Core|CoreBindings $app |
|
| 295 | + * @param Core $app |
|
| 296 | 296 | * @param User $user |
| 297 | 297 | * @param ActiveRecord $record |
| 298 | 298 | * |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | */ |
| 359 | 359 | |
| 360 | 360 | /** |
| 361 | - * @return Core|\Icybee\Binding\CoreBindings |
|
| 361 | + * @return Core |
|
| 362 | 362 | */ |
| 363 | 363 | static private function app() |
| 364 | 364 | { |
@@ -233,7 +233,9 @@ |
||
| 233 | 233 | $user = $model[$uid]; |
| 234 | 234 | } |
| 235 | 235 | } |
| 236 | - catch (\Exception $e) {} |
|
| 236 | + catch (\Exception $e) |
|
| 237 | + { |
|
| 238 | +} |
|
| 237 | 239 | |
| 238 | 240 | if (!$user) |
| 239 | 241 | { |