| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Arcanesoft\Blog\Providers; |
||
| 25 | 102 | public function boot() |
|
| 26 | { |
||
| 27 | 102 | parent::registerPolicies(); |
|
|
|
|||
| 28 | |||
| 29 | 102 | $this->defineMany(DashboardPolicy::class, DashboardPolicy::policies()); |
|
| 30 | 102 | $this->defineMany(PostsPolicy::class, PostsPolicy::policies()); |
|
| 31 | 102 | $this->defineMany(CategoriesPolicy::class, CategoriesPolicy::policies()); |
|
| 32 | 102 | $this->defineMany(TagsPolicy::class, TagsPolicy::policies()); |
|
| 33 | 102 | } |
|
| 34 | } |
||
| 35 |
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.