| Total Complexity | 8 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class MetadataBaseProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @return bool |
||
| 13 | */ |
||
| 14 | protected function getIsCaching() |
||
| 15 | { |
||
| 16 | return true === env('APP_METADATA_CACHING', false); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param $isCaching |
||
| 21 | * @param $hasCache |
||
| 22 | * @param $key |
||
| 23 | * @param $meta |
||
| 24 | */ |
||
| 25 | protected function handlePostBoot($isCaching, $hasCache, $key, $meta) |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param $classMap |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | protected function getClassMap() |
||
| 57 |
This check compares calls to functions or methods with their respective definitions. If the call has less arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.