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