@@ -50,8 +50,7 @@ |
||
| 50 | 50 | $normalized_status[self::NORMALIZED_MESSAGE] = $status[self::Section_Common][self::Error_Message]; |
| 51 | 51 | $normalized_status[self::NORMALIZED_CODE] = |
| 52 | 52 | isset($status[self::Section_Common][self::Error_Code]) ? |
| 53 | - $status[self::Section_Common][self::Error_Code] : |
|
| 54 | - self::STATUS_OK; |
|
| 53 | + $status[self::Section_Common][self::Error_Code] : self::STATUS_OK; |
|
| 55 | 54 | |
| 56 | 55 | return $normalized_status; |
| 57 | 56 | } |
@@ -63,6 +63,9 @@ |
||
| 63 | 63 | return $data; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | + /** |
|
| 67 | + * @param string $url |
|
| 68 | + */ |
|
| 66 | 69 | private function doRealRequest($url, array $options) |
| 67 | 70 | { |
| 68 | 71 | $request = new FormRequest(Request::METHOD_POST); |
@@ -77,9 +77,9 @@ |
||
| 77 | 77 | try { |
| 78 | 78 | $connection->send($message); |
| 79 | 79 | } catch (WebSMSException $exception) { |
| 80 | - if ($exception instanceof DeliveryException){ |
|
| 80 | + if ($exception instanceof DeliveryException) { |
|
| 81 | 81 | return; |
| 82 | - } elseif ($exception instanceof DriverException){ |
|
| 82 | + } elseif ($exception instanceof DriverException) { |
|
| 83 | 83 | return; |
| 84 | 84 | } else { |
| 85 | 85 | $this->fail('Unexpected exception'); |