Completed
Push — master ( 156cbf...ec5f3d )
by Frederick
14s
created

ClientFactory::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Vanbrabantf\NpmStatFetcher;
4
5
use GuzzleHttp\Client;
6
7
class ClientFactory
8
{
9
    /**
10
     * @return Client
11
     */
12
    public static function build()
13
    {
14
        return new Client([
15
            'base_uri' => 'https://api.npmjs.org/',
16
        ]);
17
    }
18
}
19