| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 83 | protected function findParentFor(Mailcode_Commands_Command $command) : bool |
||
| 84 | { |
||
| 85 | $parent = $command->getParent(); |
||
| 86 | |||
| 87 | if($parent === null) |
||
| 88 | { |
||
| 89 | return false; |
||
| 90 | } |
||
| 91 | |||
| 92 | if($parent instanceof Mailcode_Commands_Command_For) |
||
| 93 | { |
||
| 94 | return true; |
||
| 95 | } |
||
| 96 | |||
| 97 | return $this->findParentFor($parent); |
||
| 98 | } |
||
| 100 |