| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 12 |
| Ratio | 100 % |
| Tests | 3 |
| CRAP Score | 2.9765 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 1 | View Code Duplication | public function getSounds() |
| 37 | { |
||
| 38 | 1 | $uri = 'sounds'; |
|
| 39 | 1 | $response = $this->client->getEndpoint()->get($uri); |
|
| 40 | |||
| 41 | $sounds = []; |
||
| 42 | foreach (\GuzzleHttp\json_decode($response->getBody()) as $sound) { |
||
| 43 | $sounds[] = new Sound($sound); |
||
| 44 | } |
||
| 45 | |||
| 46 | return $sounds; |
||
| 47 | } |
||
| 48 | |||
| 63 |