Code Duplication    Length = 19-19 lines in 2 locations

src/Akeneo/Crowdin/Api/Info.php 1 location

@@ 11-29 (lines=19) @@
8
 * @author Nicolas Dupont <[email protected]>
9
 * @see https://crowdin.com/page/api/info
10
 */
11
class Info extends AbstractApi
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function execute()
17
    {
18
        $this->addUrlParameter('key', $this->client->getProjectApiKey());
19
        
20
        $path = sprintf(
21
            "project/%s/info?%s",
22
            $this->client->getProjectIdentifier(),
23
            $this->getUrlQueryString()
24
        );
25
        $response = $this->client->getHttpClient()->get($path);
26
27
        return $response->getBody();
28
    }
29
}
30

src/Akeneo/Crowdin/Api/Status.php 1 location

@@ 11-29 (lines=19) @@
8
 * @author Nicolas Dupont <[email protected]>
9
 * @see https://crowdin.com/page/api/status
10
 */
11
class Status extends AbstractApi
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function execute()
17
    {
18
        $this->addUrlParameter('key', $this->client->getProjectApiKey());
19
        
20
        $path = sprintf(
21
            "project/%s/status?%s",
22
            $this->client->getProjectIdentifier(),
23
            $this->getUrlQueryString()
24
        );
25
        $response = $this->client->getHttpClient()->get($path);
26
27
        return $response->getBody();
28
    }
29
}
30