| Conditions | 5 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function hasDirective($name) |
||
| 45 | { |
||
| 46 | $inSubDirective = false; |
||
| 47 | |||
| 48 | foreach ($this->directives as $index => $directive) { |
||
| 49 | if ($directive->getName() == $name) { |
||
| 50 | return true; |
||
| 51 | } |
||
| 52 | |||
| 53 | if (!$directive->isSimple()) { |
||
| 54 | $inSubDirective = $inSubDirective || $directive->hasDirective($name); |
||
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | return $inSubDirective; |
||
| 59 | } |
||
| 60 | |||
| 66 |