| Conditions | 4 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 15 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 83 | View Code Duplication | public function executeAll(...$args) |
|
| 84 | { |
||
| 85 | if ($this->isEmpty()) { |
||
| 86 | return 0; |
||
| 87 | } |
||
| 88 | $n = 0; |
||
| 89 | do { |
||
| 90 | $cb = $this->extract(); |
||
| 91 | if ($cb) { |
||
| 92 | $cb(...$args); |
||
| 93 | ++$n; |
||
| 94 | } |
||
| 95 | } while (!$this->isEmpty()); |
||
| 96 | return $n; |
||
| 97 | } |
||
| 98 | } |
||
| 99 |
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.