@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function hasRecipients() |
94 | 94 | { |
95 | - return ! empty($this->recipients); |
|
95 | + return !empty($this->recipients); |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function addRecipientVariable($recipient, $recipientVariable, $recipientVariableValue) |
127 | 127 | { |
128 | - if (! isset($this->recipientVariables[$recipient])) { |
|
128 | + if (!isset($this->recipientVariables[$recipient])) { |
|
129 | 129 | $this->recipientVariables[$recipient] = []; |
130 | 130 | } |
131 | 131 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | */ |
160 | 160 | public function hasRecipientVariables() |
161 | 161 | { |
162 | - return ! empty($this->recipientVariables); |
|
162 | + return !empty($this->recipientVariables); |
|
163 | 163 | } |
164 | 164 | |
165 | 165 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | parse_str($rawResponse, $response); |
46 | 46 | |
47 | - if (! isset($response['status'])) { |
|
47 | + if (!isset($response['status'])) { |
|
48 | 48 | throw new UnknownErrorResponseException("Missing response status value from Skebby"); |
49 | 49 | } |
50 | 50 |
@@ -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]; |