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

SupportedLanguages   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 5
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 8 1
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