Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Arcanesoft\Auth\Providers; |
||
26 | public function boot() |
||
27 | { |
||
28 | parent::registerPolicies(); |
||
|
|||
29 | |||
30 | $authPolicies = [ |
||
31 | DashboardPolicy::class => DashboardPolicy::policies(), |
||
32 | UsersPolicy::class => UsersPolicy::policies(), |
||
33 | RolesPolicy::class => RolesPolicy::policies(), |
||
34 | PermissionsPolicy::class => PermissionsPolicy::policies(), |
||
35 | PasswordResetsPolicy::class => PasswordResetsPolicy::policies() |
||
36 | ]; |
||
37 | |||
38 | foreach ($authPolicies as $class => $policies) { |
||
39 | $this->defineMany($class, $policies); |
||
40 | } |
||
41 | } |
||
42 | } |
||
43 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.