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

ClientFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 9
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 4 1
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