Skip to content

Commit

Permalink
Merge pull request #15 from descom-es/analysis-8mQO3Y
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
cesargb authored Oct 11, 2019
2 parents ce65a0d + 8d80e9b commit 7f954f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Sms.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Descom\Sms;

use Descom\Sms\Http\Http;
use Descom\Sms\Exceptions\RequestFail;
use Descom\Sms\Auth\AuthInterface as Auth;
use Descom\Sms\Exceptions\MessageTextAlreadyExists;
use Descom\Sms\Exceptions\RequestFail;
use Descom\Sms\Http\Http;

class Sms
{
Expand Down Expand Up @@ -170,6 +170,7 @@ public function getBalance()

return $data->balance;
}

throw new RequestFail($response->message, $response->status);
}

Expand All @@ -195,6 +196,7 @@ public function getSenderID($details = false)

return $data;
}

throw new RequestFail($response->message, $response->status);
}

Expand Down Expand Up @@ -235,6 +237,7 @@ public function send()
if ($response->status == 200) {
return json_decode($response->message);
}

throw new RequestFail($response->message, $response->status);
}
}

0 comments on commit 7f954f7

Please sign in to comment.