Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
47 | 1 | public function bestFit(string $platform): Language |
|
48 | { |
||
49 | 1 | $response = $this->client->get($this->buildPath($this->path . '/' . $platform . '/languages/best_fit')); |
|
50 | 1 | $contents = $response->getBody()->getContents(); |
|
51 | 1 | $data = json_decode($contents, true); |
|
52 | 1 | return new Language($data['data']); |
|
53 | } |
||
55 | } |