Conditions | 4 |
Paths | 5 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function exposeDirectory($source, $target) |
||
34 | { |
||
35 | $lastException = null; |
||
36 | foreach ($this->failovers as $failover) { |
||
37 | try { |
||
38 | $failover->exposeDirectory($source, $target); |
||
39 | return; // Return on first success |
||
40 | } catch (RuntimeException $lastException) { |
||
|
|||
41 | } |
||
42 | } |
||
43 | if ($lastException) { |
||
44 | throw $lastException; |
||
45 | } |
||
48 |