| Conditions | 5 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 67 | private function rotateIfNeeded() |
||
| 68 | { |
||
| 69 | if (isset($this->interval) && $this->interval >= 0) { |
||
| 70 | $modificationTime = $this->getLastModificationTime(); |
||
| 71 | |||
| 72 | if (null === $modificationTime) { |
||
| 73 | $this->regen(); |
||
| 74 | } elseif (($modificationTime + $this->interval) < time()) { |
||
| 75 | $this->rotate(); |
||
| 76 | } |
||
| 77 | } |
||
| 78 | } |
||
| 79 | } |
||
| 80 |
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.