Code Duplication    Length = 2-2 lines in 2 locations

src/Gecharl.php 2 locations

@@ 64-65 (lines=2) @@
61
        $response = $this->withOAuth2()->get("{$this->baseUrl}/account?username={$this->config['username']}");
62
63
        $responseObject = json_decode($response->body());
64
        if (isset($responseObject->status) && isset($responseObject->message))
65
            return new GecharlResponse($responseObject->status ? 200 : 422, $responseObject->message);
66
        return new GecharlResponse(504);
67
    }
68
@@ 87-88 (lines=2) @@
84
        ]);
85
86
        $responseObject = json_decode($response->body());
87
        if (isset($responseObject->status) && isset($responseObject->message))
88
            return new GecharlResponse($responseObject->status ? 200 : 422, $responseObject->message);
89
        return new GecharlResponse(504);
90
    }
91