@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $module = 'message'; |
100 | 100 | $method = 'send.json'; |
101 | 101 | |
102 | - if (! $text) { |
|
102 | + if (!$text) { |
|
103 | 103 | return [ |
104 | 104 | 'success' => false, |
105 | 105 | 'result' => null, |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | ]; |
118 | 118 | |
119 | 119 | //SMS |
120 | - if ($type == 'sms' || ! $type) { |
|
120 | + if ($type == 'sms' || !$type) { |
|
121 | 121 | $body = $this->bodySMS($body, $text); |
122 | 122 | } |
123 | 123 | //VIBER |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | } |
176 | 176 | |
177 | 177 | $answer = $response->json(); |
178 | - if (! isset($answer['response_result']) || ! $answer['response_result']) { |
|
178 | + if (!isset($answer['response_result']) || !$answer['response_result']) { |
|
179 | 179 | $error = __('turbosms::turbosms.response_status.'.$answer['response_status']); |
180 | 180 | |
181 | 181 | return [ |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | */ |
274 | 274 | public function phonesTrim($phones) |
275 | 275 | { |
276 | - $phones->transform(function ($item) { |
|
276 | + $phones->transform(function($item) { |
|
277 | 277 | return preg_replace('/[^0-9]/', '', $item); |
278 | 278 | }); |
279 | 279 |