Completed
Push — master ( 02addd...f1621a )
by Alessandro
11:52 queued 02:31
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   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function send(Sms $sms)
50 50
     {
51
-        if (! $sms->hasRecipients()) {
51
+        if (!$sms->hasRecipients()) {
52 52
             throw new NoRecipientsSpecifiedException();
53 53
         }
54 54
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             ;
64 64
 
65 65
             foreach ($chunk as $recipient) {
66
-                if (! isset($sms->getRecipientVariables()[$recipient])) {
66
+                if (!isset($sms->getRecipientVariables()[$recipient])) {
67 67
                     continue;
68 68
                 }
69 69
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                 SendMethods::TEST_CLASSIC_PLUS,
128 128
                 SendMethods::TEST_BASIC,
129 129
             ])
130
-            ->setAllowedValues('validity_period', function (\DateInterval $value) {
130
+            ->setAllowedValues('validity_period', function(\DateInterval $value) {
131 131
                 return $value->i >= ValidityPeriods::MIN && $value->i <= ValidityPeriods::MAX;
132 132
             })
133 133
             ->setAllowedValues('encoding_schema', [
@@ -191,14 +191,14 @@  discard block
 block discarded – undo
191 191
     {
192 192
         $recipients = $sms->getRecipients();
193 193
 
194
-        if (! $sms->hasRecipientVariables()) {
194
+        if (!$sms->hasRecipientVariables()) {
195 195
             $recipients = array_map([$this, 'normalizePhoneNumber'], $recipients);
196 196
             return json_encode($recipients);
197 197
         }
198 198
 
199 199
         $recipientVariables = $sms->getRecipientVariables();
200 200
 
201
-        return json_encode(array_map(function ($recipient) use ($recipientVariables) {
201
+        return json_encode(array_map(function($recipient) use ($recipientVariables) {
202 202
             $targetVariables = [];
203 203
             if (isset($recipientVariables[$recipient])) {
204 204
                 $targetVariables = $recipientVariables[$recipient];
Please login to merge, or discard this patch.