Passed
Push — master ( ac2a98...d040cc )
by Andrey
04:07
created
src/TurboSMSServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Traits/StartTimeAddition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/TurboSMS.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.