| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | abstract class Base implements FactoryInterface |
||
| 19 | { |
||
| 20 | protected $serviceLocator; |
||
| 21 | |||
| 22 | protected $instanceName; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Base constructor. |
||
| 26 | * @param ServiceLocatorInterface $serviceLocator |
||
| 27 | * @param string $instanceName |
||
| 28 | */ |
||
| 29 | public function __construct( |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritDoc |
||
| 39 | */ |
||
| 40 | public function create(array $data = []) |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritDoc |
||
| 47 | */ |
||
| 48 | public function get($class) |
||
| 53 |
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.