CardsList   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getQuery() 0 7 1
1
<?php
2
3
namespace Viktoras\Scryfall\Client\Request\Cards;
4
5
use Viktoras\Scryfall\Client\Request\AbstractRequest;
6
use Viktoras\Scryfall\Client\Request\Traits\Paginatable;
7
8
class CardsList extends AbstractRequest
9
{
10
    use Paginatable;
11
12
    public function getQuery(): string
13
    {
14
        return 'cards?' . http_build_query(
15
                [
16
                    'page'   => $this->getPage(),
17
                    'format' => $this->format,
18
                    'pretty' => $this->isPretty()
19
                ]
20
            );
21
    }
22
}
23