@@ -33,7 +33,7 @@ |
||
| 33 | 33 | { |
| 34 | 34 | $this->mergeConfigFrom(__DIR__.'/../config/turbosms.php', 'turbosms'); |
| 35 | 35 | |
| 36 | - $this->app->singleton('turbosms', function () { |
|
| 36 | + $this->app->singleton('turbosms', function() { |
|
| 37 | 37 | return $this->app->make(TurboSMS::class); |
| 38 | 38 | }); |
| 39 | 39 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | public function setStartTime($startTime) |
| 18 | 18 | { |
| 19 | 19 | //ошибка в дате отправки, игнорируем установку |
| 20 | - if (! $startTime instanceof Carbon) { |
|
| 20 | + if (!$startTime instanceof Carbon) { |
|
| 21 | 21 | try { |
| 22 | 22 | $startTime = Carbon::createFromFormat('Y-m-d H:i', $startTime); |
| 23 | 23 | } catch (\Exception $e) { |
@@ -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 | |