Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3.1852 |
Changes | 0 |
1 | <?php |
||
50 | 20 | protected function getDefaultConfiguration(array $config) |
|
51 | { |
||
52 | // Laravel >= 5.1 has the "getDefaultConfiguration" method. |
||
53 | 20 | if (method_exists(get_parent_class(), 'getDefaultConfiguration')) { |
|
54 | 20 | return parent::getDefaultConfiguration($config); |
|
55 | } |
||
56 | |||
57 | return array_merge([ |
||
58 | 'version' => 'latest', |
||
59 | 'http' => [ |
||
60 | 'timeout' => 60, |
||
61 | 'connect_timeout' => 60, |
||
62 | ], |
||
63 | ], $config); |
||
64 | } |
||
65 | } |
||
66 |