Conditions | 5 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 0 |
1 | <?php |
||
13 | function loopResolver() |
||
14 | { |
||
15 | if ( |
||
16 | Configure::check('WyriHaximus.Ratchet.loop') && |
||
17 | Configure::read('WyriHaximus.Ratchet.loop') instanceof LoopInterface |
||
18 | ) { |
||
19 | return Configure::read('WyriHaximus.Ratchet.loop'); |
||
20 | } |
||
21 | |||
22 | if (class_exists('PipingBag\Di\PipingBag') && Configure::check('WyriHaximus.Ratchet.pipingbag.loop')) { |
||
23 | return PipingBag::get(Configure::read('WyriHaximus.Ratchet.pipingbag.loop')); |
||
24 | } |
||
25 | |||
26 | return Factory::create(); |
||
27 | } |
||
28 | |||
83 |