| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | 2 | public function __construct(\Traversable $keysIterator, \Traversable $valuesIterator, int $flags = self::NEED_ANY) |
|
| 11 | { |
||
| 12 | 2 | $iterator = new \MultipleIterator($flags | \MultipleIterator::MIT_KEYS_ASSOC); |
|
| 13 | 2 | $iterator->attachIterator($keysIterator, 'key'); |
|
| 14 | 2 | $iterator->attachIterator($valuesIterator, 'value'); |
|
| 15 | 2 | parent::__construct($iterator); |
|
| 16 | 2 | } |
|
| 17 | |||
| 30 |
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.