Passed
Push — master ( 7039dd...31e7d8 )
by Andrey
06:13
created
src/TurboSMS.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
175 175
             $error = __('turbosms::turbosms.response_status.FAILED_CONVERT_RESULT2JSON');
176 176
 
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      */
274 274
     public function phonesTrim(Collection $phones): Collection
275 275
     {
276
-        $phones->transform(function ($item) {
276
+        $phones->transform(function($item) {
277 277
             return preg_replace('/[^0-9]/', '', $item);
278 278
         });
279 279
 
Please login to merge, or discard this patch.