Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | public static function createGuzzle($config) |
||
17 | { |
||
18 | $guzzleVersion = self::detectGuzzleVersion(); |
||
19 | |||
20 | switch ($guzzleVersion) { |
||
21 | case 6: |
||
22 | return new Version\Guzzle6($config); |
||
23 | |||
24 | case 5: |
||
25 | return new Version\Guzzle5($config); |
||
26 | |||
27 | case 3: |
||
28 | return new Version\Guzzle3($config); |
||
29 | } |
||
30 | } |
||
31 | |||
60 |