Test Failed
Push — develop ( 9e3f9b...05a047 )
by Edwin
02:28
created

Shop   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 10 1
1
<?php
2
3
namespace ShopifyClient\Resource;
4
5
/**
6
 * https://help.shopify.com/api/reference/shop
7
 */
8
class Shop extends AbstractResource
9
{
10
    /**
11
     * @param array $fields
12
     * @return array
13
     */
14
    public function get(array $fields = [])
15
    {
16
        $response = $this->request('GET', '/admin/shop.json', [
17
            'query' => [
18
                'fields' => $fields,
19
            ],
20
        ]);
21
22
        return $response['shop'];
23
    }
24
}
25