Completed
Push — master ( e156cb...7b5497 )
by Alessandro
08:02
created
lib/DataStructure/Sms.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
lib/DataStructure/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
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.