src/Drivers/Linkmobility.php 1 location
|
@@ 61-63 (lines=3) @@
|
| 58 |
|
|
| 59 |
|
$data = json_decode((string) $response->getBody(), true); |
| 60 |
|
|
| 61 |
|
if ($data["status"] != "success") { |
| 62 |
|
return (object) ["status" => false, "message" => "Something went wrong.", "data" => $data]; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
return (object) array_merge($data, ["status" => true]); |
| 66 |
|
|
src/Drivers/Textlocal.php 1 location
|
@@ 73-75 (lines=3) @@
|
| 70 |
|
|
| 71 |
|
$data = json_decode((string) $response->getBody(), true); |
| 72 |
|
|
| 73 |
|
if ($data["status"] != "success") { |
| 74 |
|
return (object) ["status" => false, "message" => "Something went wrong.", "data" => $data]; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
return $data; |
| 78 |
|
} |