Completed
Push — master ( e156cb...7b5497 )
by Alessandro
08:02
created
lib/Client/Client.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                 ;
57 57
 
58 58
                 foreach ($chunk as $recipient) {
59
-                    if (! isset($sms->getRecipientVariables()[$recipient])) {
59
+                    if (!isset($sms->getRecipientVariables()[$recipient])) {
60 60
                         continue;
61 61
                     }
62 62
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 SendMethods::TEST_CLASSIC_PLUS,
118 118
                 SendMethods::TEST_BASIC,
119 119
             ])
120
-            ->setAllowedValues('validity_period', function (\DateInterval $value) {
120
+            ->setAllowedValues('validity_period', function(\DateInterval $value) {
121 121
                 return $value->i >= ValidityPeriods::MIN && $value->i <= ValidityPeriods::MAX;
122 122
             })
123 123
             ->setAllowedValues('encoding_schema', [
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     private function prepareRequest(Sms $sms)
148 148
     {
149
-        if (! $sms->hasRecipients()) {
149
+        if (!$sms->hasRecipients()) {
150 150
             throw new NoRecipientsSpecifiedException();
151 151
         }
152 152
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             'username' => $this->config['username'],
173 173
             'password' => $this->config['password'],
174 174
             'method' => $this->config['method'],
175
-            'sender_number' => '"' . $sender_number . '"',
175
+            'sender_number' => '"'.$sender_number.'"',
176 176
             'sender_string' => $sender_string,
177 177
             'recipients' => $this->prepareRecipients($sms),
178 178
             'text' => str_replace(' ', '+', $sms->getText()),
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
         $serializedRequest = "";
187 187
         foreach ($request as $key => $value) {
188
-            $serializedRequest .= $key . '=' . $value . '&';
188
+            $serializedRequest .= $key.'='.$value.'&';
189 189
         }
190 190
 
191 191
         return rtrim($serializedRequest, '&');
@@ -200,14 +200,14 @@  discard block
 block discarded – undo
200 200
     {
201 201
         $recipients = $sms->getRecipients();
202 202
 
203
-        if (! $sms->hasRecipientVariables()) {
203
+        if (!$sms->hasRecipientVariables()) {
204 204
             $recipients = array_map([$this, 'normalizePhoneNumber'], $recipients);
205 205
             return json_encode($recipients);
206 206
         }
207 207
 
208 208
         $recipientVariables = $sms->getRecipientVariables();
209 209
 
210
-        return json_encode(array_map(function ($recipient) use ($recipientVariables) {
210
+        return json_encode(array_map(function($recipient) use ($recipientVariables) {
211 211
             $targetVariables = [];
212 212
             if (isset($recipientVariables[$recipient])) {
213 213
                 $targetVariables = $recipientVariables[$recipient];
Please login to merge, or discard this patch.