Code Duplication    Length = 18-18 lines in 2 locations

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

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

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

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