Passed
Push — master ( fb7cad...d56f32 )
by Elf
26:42 queued 03:34
created

http_client()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
use ElfSundae\HttpClient;
4
5
if (! function_exists('http_client')) {
6
    /**
7
     * Create a new HTTP client instance.
8
     *
9
     * @param  array|string|\Psr\Http\Message\UriInterface  $options  base URI or any request options
10
     * @return \ElfSundae\HttpClient
11
     */
12
    function http_client($options = [])
13
    {
14
        return new HttpClient($options);
15
    }
16
}
17