@@ -56,7 +56,7 @@ discard block |
||
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 |
||
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 |
||
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 | |
@@ -200,14 +200,14 @@ discard block |
||
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]; |