@@ -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) { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $module = 'message'; |
84 | 84 | $method = 'send.json'; |
85 | 85 | |
86 | - if (! $text) { |
|
86 | + if (!$text) { |
|
87 | 87 | return [ |
88 | 88 | 'success' => false, |
89 | 89 | 'result' => null, |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | ]; |
102 | 102 | |
103 | 103 | //SMS |
104 | - if ($type == 'sms' || ! $type) { |
|
104 | + if ($type == 'sms' || !$type) { |
|
105 | 105 | $body = $this->bodySMS($body, $text); |
106 | 106 | } |
107 | 107 | //VIBER |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | } |
160 | 160 | |
161 | 161 | $answer = $response->json(); |
162 | - if (! isset($answer['response_result']) || ! $answer['response_result']) { |
|
162 | + if (!isset($answer['response_result']) || !$answer['response_result']) { |
|
163 | 163 | $error = __('turbosms::turbosms.response_status.'.$answer['response_status']); |
164 | 164 | |
165 | 165 | return [ |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | public function phonesTrim($phones) |
261 | 261 | { |
262 | 262 | |
263 | - $phones->transform(function ($item) { |
|
263 | + $phones->transform(function($item) { |
|
264 | 264 | return preg_replace('/[^0-9]/', '', $item); |
265 | 265 | }); |
266 | 266 |