Completed
Push — fix-checkstyle ( 525678...700890 )
by
unknown
03:06
created

SupportedLanguages::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Akeneo\Crowdin\Api;
4
5
/**
6
 * Get supported languages list
7
 *
8
 * @author Nicolas Dupont <[email protected]>
9
 * @see http://crowdin.net/page/api/supported-languages
10
 */
11
class SupportedLanguages extends AbstractApi
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function execute()
17
    {
18
        $http     = $this->client->getHttpClient();
19
        $request  = $http->get('supported-languages');
20
        $response = $request->send();
21
22
        return $response->getBody(true);
23
    }
24
}
25