@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Fazland\SkebbyRestClient\Transport; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Fazland\SkebbyRestClient\Transport; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Fazland\SkebbyRestClient\Transport; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Fazland\SkebbyRestClient\Transport; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Fazland\SkebbyRestClient\Client; |
4 | 4 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function send(Sms $sms): array |
70 | 70 | { |
71 | - if (! $sms->hasRecipients()) { |
|
71 | + if (!$sms->hasRecipients()) { |
|
72 | 72 | throw new NoRecipientsSpecifiedException(); |
73 | 73 | } |
74 | 74 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | ; |
84 | 84 | |
85 | 85 | foreach ($chunk as $recipient) { |
86 | - if (! isset($sms->getRecipientVariables()[$recipient])) { |
|
86 | + if (!isset($sms->getRecipientVariables()[$recipient])) { |
|
87 | 87 | continue; |
88 | 88 | } |
89 | 89 | |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | SendMethods::TEST_CLASSIC_PLUS, |
148 | 148 | SendMethods::TEST_BASIC, |
149 | 149 | ]) |
150 | - ->setAllowedValues('validity_period', function (\DateInterval $value) { |
|
150 | + ->setAllowedValues('validity_period', function(\DateInterval $value) { |
|
151 | 151 | return $value->i >= ValidityPeriods::MIN && $value->i <= ValidityPeriods::MAX; |
152 | 152 | }) |
153 | 153 | ->setAllowedValues('encoding_schema', [ |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | { |
218 | 218 | $recipients = $sms->getRecipients(); |
219 | 219 | |
220 | - if (! $sms->hasRecipientVariables()) { |
|
220 | + if (!$sms->hasRecipientVariables()) { |
|
221 | 221 | $recipients = array_map([$this, 'normalizePhoneNumber'], $recipients); |
222 | 222 | |
223 | 223 | return json_encode($recipients); |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | |
226 | 226 | $recipientVariables = $sms->getRecipientVariables(); |
227 | 227 | |
228 | - return json_encode(array_map(function ($recipient) use ($recipientVariables) { |
|
228 | + return json_encode(array_map(function($recipient) use ($recipientVariables) { |
|
229 | 229 | $targetVariables = []; |
230 | 230 | if (isset($recipientVariables[$recipient])) { |
231 | 231 | $targetVariables = $recipientVariables[$recipient]; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Fazland\SkebbyRestClient\Exception; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Fazland\SkebbyRestClient\Exception; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Fazland\SkebbyRestClient\Exception; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Fazland\SkebbyRestClient\Exception; |
4 | 4 |