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