@@ -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 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | public function setStartTime($startTime): self |
| 20 | 20 | { |
| 21 | 21 | //ошибка в дате отправки, игнорируем установку |
| 22 | - if (! $startTime instanceof Carbon) { |
|
| 22 | + if (!$startTime instanceof Carbon) { |
|
| 23 | 23 | try { |
| 24 | 24 | $startTime = Carbon::createFromFormat('Y-m-d H:i', $startTime); |
| 25 | 25 | } catch (Exception $e) { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $module = 'message'; |
| 97 | 97 | $method = 'send.json'; |
| 98 | 98 | |
| 99 | - if (! $text) { |
|
| 99 | + if (!$text) { |
|
| 100 | 100 | return [ |
| 101 | 101 | 'success' => false, |
| 102 | 102 | 'result' => null, |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | ]; |
| 115 | 115 | |
| 116 | 116 | //SMS |
| 117 | - if ($type == 'sms' || ! $type) { |
|
| 117 | + if ($type == 'sms' || !$type) { |
|
| 118 | 118 | $body = $this->bodySMS($body, $text); |
| 119 | 119 | } |
| 120 | 120 | //VIBER |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | $answer = $response->json(); |
| 173 | - if (! $answer || ! isset($answer['response_result']) || ! $answer['response_result']) { |
|
| 173 | + if (!$answer || !isset($answer['response_result']) || !$answer['response_result']) { |
|
| 174 | 174 | $error = __('turbosms::turbosms.response_status.FAILED_CONVERT_RESULT2JSON'); |
| 175 | 175 | |
| 176 | 176 | if (isset($answer['response_status']) && $answer['response_status']) { |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | */ |
| 273 | 273 | public function phonesTrim(Collection $phones): Collection |
| 274 | 274 | { |
| 275 | - $phones->transform(function ($item) { |
|
| 275 | + $phones->transform(function($item) { |
|
| 276 | 276 | return preg_replace('/[^0-9]/', '', $item); |
| 277 | 277 | }); |
| 278 | 278 | |