Completed
Push — master ( 85222f...c3043f )
by Massimiliano
03:15
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
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
                 SendMethods::TEST_CLASSIC_PLUS,
110 110
                 SendMethods::TEST_BASIC,
111 111
             ])
112
-            ->setAllowedValues('delivery_start', function ($value) {
112
+            ->setAllowedValues('delivery_start', function($value) {
113 113
                 $d = \DateTime::createFromFormat(\DateTime::RFC2822, $value);
114 114
                 return $d && $d->format('Y-m-d') === $value;
115 115
             })
116
-            ->setAllowedValues('validity_period', function ($value) {
116
+            ->setAllowedValues('validity_period', function($value) {
117 117
                 return $value >= ValidityPeriods::MIN && $value <= ValidityPeriods::MAX;
118 118
             })
119 119
             ->setAllowedValues('encoding_scheme', [
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     private function prepareRequest(Sms $sms)
144 144
     {
145
-        if (! $sms->hasRecipients()) {
145
+        if (!$sms->hasRecipients()) {
146 146
             throw new NoRecipientsSpecifiedException();
147 147
         }
148 148
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     {
173 173
         $recipients = $sms->getRecipients();
174 174
 
175
-        $normalizeRecipientCallable = function ($recipient) {
175
+        $normalizeRecipientCallable = function($recipient) {
176 176
             if ("+" === $recipient[0]) {
177 177
                 $recipient = substr($recipient, 1);
178 178
             } elseif ("00" === substr($recipient, 0, 2)) {
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             return json_encode($recipients);
190 190
         }
191 191
 
192
-        return json_encode(array_map(function ($recipient) use ($recipientVariables, $normalizeRecipientCallable) {
192
+        return json_encode(array_map(function($recipient) use ($recipientVariables, $normalizeRecipientCallable) {
193 193
             $targetVariables = $recipientVariables[$recipient];
194 194
 
195 195
             return array_merge(['recipient' => $normalizeRecipientCallable($recipient)], $targetVariables);
Please login to merge, or discard this patch.