Completed
Push — master ( b59dba...dc98f2 )
by Massimiliano
05:33
created
lib/DataStructure/Response.php 1 patch
Spacing   +4 added lines, -4 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\DataStructure;
4 4
 
@@ -62,20 +62,20 @@  discard block
 block discarded – undo
62 62
         }
63 63
 
64 64
         foreach (SendMethods::all() as $method) {
65
-            if (! isset($doc->$method)) {
65
+            if (!isset($doc->$method)) {
66 66
                 continue;
67 67
             }
68 68
 
69 69
             $element = $doc->$method;
70 70
 
71
-            if (! isset($element->status)) {
71
+            if (!isset($element->status)) {
72 72
                 throw new UnknownErrorResponseException('Missing response status value from Skebby', $rawResponse);
73 73
             }
74 74
 
75 75
             $this->status = (string) $element->status;
76 76
             $this->messageId = isset($element->id) ? (string) $element->id : null;
77 77
 
78
-            if (! $this->isSuccessful()) {
78
+            if (!$this->isSuccessful()) {
79 79
                 $this->code = isset($element->code) ? (string) $element->code : null;
80 80
                 $this->errorMessage = isset($element->message) ? (string) $element->message : 'Unknown error';
81 81
             }
Please login to merge, or discard this patch.
lib/DataStructure/Sms.php 1 patch
Spacing   +4 added lines, -4 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\DataStructure;
4 4
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function hasRecipients(): bool
158 158
     {
159
-        return ! empty($this->recipients);
159
+        return !empty($this->recipients);
160 160
     }
161 161
 
162 162
     /**
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         string $recipientVariable,
199 199
         string $recipientVariableValue
200 200
     ): self {
201
-        if (! isset($this->recipientVariables[$recipient])) {
201
+        if (!isset($this->recipientVariables[$recipient])) {
202 202
             $this->recipientVariables[$recipient] = [];
203 203
         }
204 204
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      */
230 230
     public function hasRecipientVariables(): bool
231 231
     {
232
-        return ! empty($this->recipientVariables);
232
+        return !empty($this->recipientVariables);
233 233
     }
234 234
 
235 235
     /**
Please login to merge, or discard this patch.
lib/Constant/Recipients.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\Constant;
4 4
 
Please login to merge, or discard this patch.
lib/Constant/ValidityPeriods.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\Constant;
4 4
 
Please login to merge, or discard this patch.
lib/Constant/EncodingSchemas.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\Constant;
4 4
 
Please login to merge, or discard this patch.
lib/Constant/Endpoints.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\Constant;
4 4
 
Please login to merge, or discard this patch.
lib/Constant/SendMethods.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\Constant;
4 4
 
Please login to merge, or discard this patch.
lib/Constant/ResponseCodes.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\Constant;
4 4
 
Please login to merge, or discard this patch.
lib/Constant/Charsets.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\Constant;
4 4
 
Please login to merge, or discard this patch.