1 | <?php namespace Arcanesoft\Auth\Models; |
||
15 | class Permission extends BasePermission |
||
16 | { |
||
17 | /* ----------------------------------------------------------------- |
||
18 | | Traits |
||
19 | | ----------------------------------------------------------------- |
||
20 | */ |
||
21 | |||
22 | use Presenters\PermissionPresenter; |
||
23 | |||
24 | /* ----------------------------------------------------------------- |
||
25 | | Main Methods |
||
26 | | ----------------------------------------------------------------- |
||
27 | */ |
||
28 | |||
29 | /** |
||
30 | * Get a permission from a hashed id or fail if not found. |
||
31 | * |
||
32 | * @param string $hashedId |
||
33 | * |
||
34 | * @return self |
||
35 | * |
||
36 | * @throws \Illuminate\Database\Eloquent\ModelNotFoundException |
||
37 | */ |
||
38 | public static function firstHashedOrFail($hashedId) |
||
42 | |||
43 | /** |
||
44 | * Get the ids of all permissions. |
||
45 | * |
||
46 | * @return \Illuminate\Support\Collection |
||
47 | */ |
||
48 | public static function getIds() |
||
52 | |||
53 | /* ----------------------------------------------------------------- |
||
54 | | Check Methods |
||
55 | | ----------------------------------------------------------------- |
||
56 | */ |
||
57 | |||
58 | /** |
||
59 | * Check if permission has a group. |
||
60 | * |
||
61 | * @return bool |
||
62 | */ |
||
63 | public function hasGroup() |
||
67 | } |
||
68 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.