@@ -107,7 +107,7 @@ |
||
| 107 | 107 | * @param string $recipient - number of the recipient (9 digits without leading zero for national numbers e.g. 501234567; two leading zeros followed by prefix for international numbers e.g. 004912345678901; no spaces or special chars) |
| 108 | 108 | * @param string $text - content of the SMS |
| 109 | 109 | */ |
| 110 | - // TODO: check number of recipient for validaty |
|
| 110 | + // TODO: check number of recipient for validaty |
|
| 111 | 111 | public function send($recipient, $text) |
| 112 | 112 | { |
| 113 | 113 | if (strlen($text) <= 0 || strlen($text) > $this->max_length) { |
@@ -181,8 +181,11 @@ |
||
| 181 | 181 | if (!empty($element->plaintext)) { |
| 182 | 182 | $value = trim($value); |
| 183 | 183 | $value_int = intval($value); |
| 184 | - if (is_int($value_int)) $result = $value_int; |
|
| 185 | - else $result = $value; |
|
| 184 | + if (is_int($value_int)) { |
|
| 185 | + $result = $value_int; |
|
| 186 | + } else { |
|
| 187 | + $result = $value; |
|
| 188 | + } |
|
| 186 | 189 | } else { |
| 187 | 190 | $result = false; |
| 188 | 191 | } |