| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php namespace Arcanesoft\Auth\Providers; |
||
| 26 | 15 | public function boot() |
|
| 27 | { |
||
| 28 | 15 | parent::registerPolicies(); |
|
|
|
|||
| 29 | |||
| 30 | $authPolicies = [ |
||
| 31 | 15 | DashboardPolicy::class => DashboardPolicy::policies(), |
|
| 32 | 15 | UsersPolicy::class => UsersPolicy::policies(), |
|
| 33 | 15 | RolesPolicy::class => RolesPolicy::policies(), |
|
| 34 | 15 | PermissionsPolicy::class => PermissionsPolicy::policies(), |
|
| 35 | 15 | PasswordResetsPolicy::class => PasswordResetsPolicy::policies() |
|
| 36 | ]; |
||
| 37 | |||
| 38 | 15 | foreach ($authPolicies as $class => $policies) { |
|
| 39 | 15 | $this->defineMany($class, $policies); |
|
| 40 | } |
||
| 41 | 15 | } |
|
| 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 theSoncalls the wrong method in the parent class.