Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php namespace Arcanesoft\Seo\Providers; |
||
26 | 16 | public function boot() |
|
27 | { |
||
28 | 16 | parent::registerPolicies(); |
|
|
|||
29 | |||
30 | 16 | $this->defineMany(DashboardPolicy::class, DashboardPolicy::policies()); |
|
31 | 16 | $this->defineMany(PagesPolicy::class, PagesPolicy::policies()); |
|
32 | 16 | $this->defineMany(FootersPolicy::class, FootersPolicy::policies()); |
|
33 | 16 | $this->defineMany(MetasPolicy::class, MetasPolicy::policies()); |
|
34 | 16 | $this->defineMany(RedirectsPolicy::class, RedirectsPolicy::policies()); |
|
35 | 16 | } |
|
36 | } |
||
37 |
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.