Completed
Push — master ( b59dba...dc98f2 )
by Massimiliano
05:33
created
lib/Transport/HttpClientTransport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Fazland\SkebbyRestClient\Transport;
4 4
 
Please login to merge, or discard this patch.
lib/Transport/TransportInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Fazland\SkebbyRestClient\Transport;
4 4
 
Please login to merge, or discard this patch.
lib/Transport/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Fazland\SkebbyRestClient\Transport;
4 4
 
Please login to merge, or discard this patch.
lib/Transport/CurlExtensionTransport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Fazland\SkebbyRestClient\Transport;
4 4
 
Please login to merge, or discard this patch.
lib/Client/Client.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Fazland\SkebbyRestClient\Client;
4 4
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function send(Sms $sms): array
70 70
     {
71
-        if (! $sms->hasRecipients()) {
71
+        if (!$sms->hasRecipients()) {
72 72
             throw new NoRecipientsSpecifiedException();
73 73
         }
74 74
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             ;
84 84
 
85 85
             foreach ($chunk as $recipient) {
86
-                if (! isset($sms->getRecipientVariables()[$recipient])) {
86
+                if (!isset($sms->getRecipientVariables()[$recipient])) {
87 87
                     continue;
88 88
                 }
89 89
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                 SendMethods::TEST_CLASSIC_PLUS,
148 148
                 SendMethods::TEST_BASIC,
149 149
             ])
150
-            ->setAllowedValues('validity_period', function (\DateInterval $value) {
150
+            ->setAllowedValues('validity_period', function(\DateInterval $value) {
151 151
                 return $value->i >= ValidityPeriods::MIN && $value->i <= ValidityPeriods::MAX;
152 152
             })
153 153
             ->setAllowedValues('encoding_schema', [
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     {
218 218
         $recipients = $sms->getRecipients();
219 219
 
220
-        if (! $sms->hasRecipientVariables()) {
220
+        if (!$sms->hasRecipientVariables()) {
221 221
             $recipients = array_map([$this, 'normalizePhoneNumber'], $recipients);
222 222
 
223 223
             return json_encode($recipients);
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 
226 226
         $recipientVariables = $sms->getRecipientVariables();
227 227
 
228
-        return json_encode(array_map(function ($recipient) use ($recipientVariables) {
228
+        return json_encode(array_map(function($recipient) use ($recipientVariables) {
229 229
             $targetVariables = [];
230 230
             if (isset($recipientVariables[$recipient])) {
231 231
                 $targetVariables = $recipientVariables[$recipient];
Please login to merge, or discard this patch.
lib/Exception/RuntimeException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Fazland\SkebbyRestClient\Exception;
4 4
 
Please login to merge, or discard this patch.
lib/Exception/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Fazland\SkebbyRestClient\Exception;
4 4
 
Please login to merge, or discard this patch.
lib/Exception/InvalidDeliveryStartException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Fazland\SkebbyRestClient\Exception;
4 4
 
Please login to merge, or discard this patch.
lib/Exception/EmptyResponseException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Fazland\SkebbyRestClient\Exception;
4 4
 
Please login to merge, or discard this patch.