Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 1 | public function pull(): Collection |
|
24 | { |
||
25 | 1 | $response = $this->preparePendingRequest()->get($this->url); |
|
26 | |||
27 | 1 | $array = XmlToArray::convert($response->body()); |
|
28 | |||
29 | 1 | $data = $this->listingKey ? Arr::get($array, $this->listingKey, []) : $array; |
|
30 | |||
31 | 1 | return collect($data); |
|
32 | } |
||
34 |