@@ -68,8 +68,7 @@ |
||
| 68 | 68 | if ($phone) |
| 69 | 69 | { |
| 70 | 70 | return "sms:directsms:" . $phone; |
| 71 | - } |
|
| 72 | - else |
|
| 71 | + } else |
|
| 73 | 72 | { |
| 74 | 73 | return "sms:directsms:anonymous"; |
| 75 | 74 | } |
@@ -16,8 +16,7 @@ |
||
| 16 | 16 | if ($code >= 500) |
| 17 | 17 | { |
| 18 | 18 | $mnsErrorCode = "ServerError"; |
| 19 | - } |
|
| 20 | - else |
|
| 19 | + } else |
|
| 21 | 20 | { |
| 22 | 21 | $mnsErrorCode = "ClientError"; |
| 23 | 22 | } |
@@ -154,8 +154,7 @@ |
||
| 154 | 154 | if ($loggingEnabled == "True") |
| 155 | 155 | { |
| 156 | 156 | $loggingEnabled = True; |
| 157 | - } |
|
| 158 | - else |
|
| 157 | + } else |
|
| 159 | 158 | { |
| 160 | 159 | $loggingEnabled = False; |
| 161 | 160 | } |
@@ -277,8 +277,7 @@ |
||
| 277 | 277 | if ($loggingEnabled == "True") |
| 278 | 278 | { |
| 279 | 279 | $loggingEnabled = True; |
| 280 | - } |
|
| 281 | - else |
|
| 280 | + } else |
|
| 282 | 281 | { |
| 283 | 282 | $loggingEnabled = False; |
| 284 | 283 | } |
@@ -40,8 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | $subAttributes->writeXML($xmlWriter); |
| 42 | 42 | } |
| 43 | - } |
|
| 44 | - else |
|
| 43 | + } else |
|
| 45 | 44 | { |
| 46 | 45 | $this->attributes->writeXML($xmlWriter); |
| 47 | 46 | } |
@@ -23,8 +23,7 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | $this->messageId = $param1; |
| 25 | 25 | $this->messageBodyMD5 = $param2; |
| 26 | - } |
|
| 27 | - else |
|
| 26 | + } else |
|
| 28 | 27 | { |
| 29 | 28 | $this->errorCode = $param1; |
| 30 | 29 | $this->errorMessage = $param2; |
@@ -95,8 +94,7 @@ discard block |
||
| 95 | 94 | if ($messageId != NULL) |
| 96 | 95 | { |
| 97 | 96 | return new SendMessageResponseItem(TRUE, $messageId, $messageBodyMD5); |
| 98 | - } |
|
| 99 | - else |
|
| 97 | + } else |
|
| 100 | 98 | { |
| 101 | 99 | return new SendMessageResponseItem(FALSE, $errorCode, $errorMessage); |
| 102 | 100 | } |
@@ -108,8 +106,7 @@ discard block |
||
| 108 | 106 | if ($messageId != NULL) |
| 109 | 107 | { |
| 110 | 108 | return new SendMessageResponseItem(TRUE, $messageId, $messageBodyMD5); |
| 111 | - } |
|
| 112 | - else |
|
| 109 | + } else |
|
| 113 | 110 | { |
| 114 | 111 | return new SendMessageResponseItem(FALSE, $errorCode, $errorMessage); |
| 115 | 112 | } |
@@ -90,8 +90,7 @@ discard block |
||
| 90 | 90 | if ($this->addressType !== NULL) |
| 91 | 91 | { |
| 92 | 92 | $jsonArray[Constants::ADDRESS_TYPE] = $this->addressType; |
| 93 | - } |
|
| 94 | - else |
|
| 93 | + } else |
|
| 95 | 94 | { |
| 96 | 95 | $jsonArray[Constants::ADDRESS_TYPE] = 0; |
| 97 | 96 | } |
@@ -100,8 +99,7 @@ discard block |
||
| 100 | 99 | if ($this->replyToAddress === TRUE) |
| 101 | 100 | { |
| 102 | 101 | $jsonArray[Constants::REPLY_TO_ADDRESS] = "1"; |
| 103 | - } |
|
| 104 | - else |
|
| 102 | + } else |
|
| 105 | 103 | { |
| 106 | 104 | $jsonArray[Constants::REPLY_TO_ADDRESS] = "0"; |
| 107 | 105 | } |
@@ -111,8 +109,7 @@ discard block |
||
| 111 | 109 | if ($this->isHtml === TRUE) |
| 112 | 110 | { |
| 113 | 111 | $jsonArray[Constants::IS_HTML] = "1"; |
| 114 | - } |
|
| 115 | - else |
|
| 112 | + } else |
|
| 116 | 113 | { |
| 117 | 114 | $jsonArray[Constants::IS_HTML] = "0"; |
| 118 | 115 | } |
@@ -147,13 +147,11 @@ |
||
| 147 | 147 | } |
| 148 | 148 | } |
| 149 | 149 | ); |
| 150 | - } |
|
| 151 | - else |
|
| 150 | + } else |
|
| 152 | 151 | { |
| 153 | 152 | return $this->client->sendAsync($request, $parameters); |
| 154 | 153 | } |
| 155 | - } |
|
| 156 | - catch (TransferException $e) |
|
| 154 | + } catch (TransferException $e) |
|
| 157 | 155 | { |
| 158 | 156 | $message = $e->getMessage(); |
| 159 | 157 | if ($e->hasResponse()) { |
@@ -29,8 +29,7 @@ discard block |
||
| 29 | 29 | if ($retNum != NULL) |
| 30 | 30 | { |
| 31 | 31 | $this->setHeader("x-mns-ret-number", $retNum); |
| 32 | - } |
|
| 33 | - else |
|
| 32 | + } else |
|
| 34 | 33 | { |
| 35 | 34 | $this->removeHeader("x-mns-ret-number"); |
| 36 | 35 | } |
@@ -47,8 +46,7 @@ discard block |
||
| 47 | 46 | if ($prefix != NULL) |
| 48 | 47 | { |
| 49 | 48 | $this->setHeader("x-mns-prefix", $prefix); |
| 50 | - } |
|
| 51 | - else |
|
| 49 | + } else |
|
| 52 | 50 | { |
| 53 | 51 | $this->removeHeader("x-mns-prefix"); |
| 54 | 52 | } |
@@ -65,8 +63,7 @@ discard block |
||
| 65 | 63 | if ($marker != NULL) |
| 66 | 64 | { |
| 67 | 65 | $this->setHeader("x-mns-marker", $marker); |
| 68 | - } |
|
| 69 | - else |
|
| 66 | + } else |
|
| 70 | 67 | { |
| 71 | 68 | $this->removeHeader("x-mns-marker"); |
| 72 | 69 | } |