guzzle()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 1
nc 2
nop 2
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
use Jenky\Hermes\Contracts\Hermes;
4
5
if (! function_exists('guzzle')) {
6
    /**
7
     * Get a guzzle client instance.
8
     *
9
     * @param  string|null  $channel
10
     * @param  array  $options
11
     * @return \Jenky\Hermes\Contracts\Hermes|\GuzzleHttp\Client
12
     */
13
    function guzzle($channel = null, array $options = [])
14
    {
15
        return $channel ? app(Hermes::class)->channel($channel, $options) : app(Hermes::class);
16
    }
17
}
18