Conditions | 6 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
52 | public function getCurrent() |
||
53 | { |
||
54 | $dependencies = $this->extract(); |
||
55 | $current = $this->stack->getMasterRequest()->get('package'); |
||
56 | |||
57 | if (null === $current) { |
||
58 | foreach ($dependencies as $key => $dependency) { |
||
59 | if (true === array_key_exists('local', $dependency) && true === $dependency['local']) { |
||
60 | $current = $key; |
||
61 | } |
||
62 | } |
||
63 | } |
||
64 | |||
65 | if (true === array_key_exists($current, $dependencies)) { |
||
66 | return $dependencies[$current]; |
||
67 | } |
||
68 | } |
||
69 | |||
86 |