Code Duplication    Length = 3-3 lines in 2 locations

src/Drivers/Linkmobility.php 1 location

@@ 55-57 (lines=3) @@
52
            ],
53
        ]);
54
55
        if ($response->getStatusCode() != 200) {
56
            return (object) ["status" => false, "message" => "Request Error. " . $response->getReasonPhrase()];
57
        }
58
59
        $data = json_decode((string) $response->getBody(), true);
60

src/Drivers/Textlocal.php 1 location

@@ 67-69 (lines=3) @@
64
     */
65
    protected function getResponseData($response)
66
    {
67
        if ($response->getStatusCode() != 200) {
68
            return (object) ["status" => false, "message" => "Request Error. " . $response->getReasonPhrase()];
69
        }
70
71
        $data = json_decode((string) $response->getBody(), true);
72