| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 80 | private function dfs($key, array $dependencies) |
||
| 81 | { |
||
| 82 | if (isset($this->states[$key])) { |
||
| 83 | return; |
||
| 84 | } |
||
| 85 | |||
| 86 | $this->states[$key] = self::STATE_NEW; |
||
| 87 | foreach ($dependencies as $dependency) { |
||
| 88 | $this->dfs($dependency, $this->dependencies[$dependency]); |
||
| 89 | } |
||
| 90 | |||
| 91 | $this->stack[] = $this->objects[$key]; |
||
| 92 | $this->states[$key] = self::STATE_PASSED; |
||
| 93 | |||
| 94 | return; |
||
| 95 | } |
||
| 96 | } |