@@ -96,7 +96,7 @@ |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
99 | - * @return string[] |
|
99 | + * @return string |
|
100 | 100 | */ |
101 | 101 | public function getRecipientVariables() |
102 | 102 | { |
@@ -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 |
@@ -106,11 +106,11 @@ discard block |
||
106 | 106 | SendMethods::TEST_CLASSIC_PLUS, |
107 | 107 | SendMethods::TEST_BASIC, |
108 | 108 | ]) |
109 | - ->setAllowedValues('delivery_start', function ($value) { |
|
109 | + ->setAllowedValues('delivery_start', function($value) { |
|
110 | 110 | $d = \DateTime::createFromFormat(\DateTime::RFC2822, $value); |
111 | 111 | return $d && $d->format('Y-m-d') === $value; |
112 | 112 | }) |
113 | - ->setAllowedValues('validity_period', function ($value) { |
|
113 | + ->setAllowedValues('validity_period', function($value) { |
|
114 | 114 | return $value >= ValidityPeriods::MIN && $value <= ValidityPeriods::MAX; |
115 | 115 | }) |
116 | 116 | ->setAllowedValues('encoding_scheme', [ |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | private function prepareRequest(Sms $sms) |
141 | 141 | { |
142 | - if (! $sms->hasRecipients()) { |
|
142 | + if (!$sms->hasRecipients()) { |
|
143 | 143 | throw new NoRecipientsSpecifiedException(); |
144 | 144 | } |
145 | 145 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | { |
170 | 170 | $recipients = $sms->getRecipients(); |
171 | 171 | |
172 | - $recipients = array_map(function ($recipient) { |
|
172 | + $recipients = array_map(function($recipient) { |
|
173 | 173 | if ("+" === $recipient[0]) { |
174 | 174 | $recipient = substr($recipient, 1); |
175 | 175 | } elseif ("00" === substr($recipient, 0, 2)) { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | return json_encode($recipients); |
186 | 186 | } |
187 | 187 | |
188 | - return json_encode(array_map(function ($recipient) use ($recipientVariables) { |
|
188 | + return json_encode(array_map(function($recipient) use ($recipientVariables) { |
|
189 | 189 | $targetVariables = $recipientVariables[$recipient]; |
190 | 190 | |
191 | 191 | return array_merge(['recipient' => $recipient], $targetVariables); |