Passed
Pull Request — master (#13)
by
unknown
02:17
created
src/Request/OnDemandRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
     public function __construct(RecurringPaymentID $paymentId, TransactionID $transactionId, Money $amount)
28 28
     {
29 29
         $this->payload = [
30
-            'frn_trn_id' => (string)$transactionId,
31
-            'rec_payment_id' => (string)$paymentId,
32
-            'currency' => (string)$amount->getCurrency(),
30
+            'frn_trn_id' => (string) $transactionId,
31
+            'rec_payment_id' => (string) $paymentId,
32
+            'currency' => (string) $amount->getCurrency(),
33 33
             'amount' => $this->formatToFloat($amount),
34 34
         ];
35 35
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function setStatusUrl(Url $url): self
43 43
     {
44
-        $this->payload['ondemand_status_url'] = (string)$url;
44
+        $this->payload['ondemand_status_url'] = (string) $url;
45 45
 
46 46
         return $this;
47 47
     }
Please login to merge, or discard this patch.
src/Factory/SidFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
         $xml = new SimpleXMLElement($response->getBody()->getContents());
44 44
 
45 45
         if ($xml->xpath('error/error_msg')) {
46
-            throw SkrillResponseException::fromSkillError(((string)$xml->error->error_msg));
46
+            throw SkrillResponseException::fromSkillError(((string) $xml->error->error_msg));
47 47
         }
48 48
 
49
-        return self::createFromString((string)$xml->sid);
49
+        return self::createFromString((string) $xml->sid);
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
src/ValueObject/Customer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         }
40 40
 
41 41
         if ($this->validateAlpha($lastName)) {
42
-            $this->lastName  = $lastName;
42
+            $this->lastName = $lastName;
43 43
         }
44 44
     }
45 45
 
@@ -68,6 +68,6 @@  discard block
 block discarded – undo
68 68
      */
69 69
     private function validateAlpha($value): bool
70 70
     {
71
-        return (bool)preg_match('/^([a-z])+$/i', $value);
71
+        return (bool) preg_match('/^([a-z])+$/i', $value);
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
src/ValueObject/Address.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     private function validateAddress($value): bool
107 107
     {
108
-        return (bool)preg_match("/^([a-z0-9\'\.\-\s\,])+$/i", $value);
108
+        return (bool) preg_match("/^([a-z0-9\'\.\-\s\,])+$/i", $value);
109 109
     }
110 110
 
111 111
     /**
@@ -143,6 +143,6 @@  discard block
 block discarded – undo
143 143
      */
144 144
     private function validateAlphaNum($value): bool
145 145
     {
146
-        return (bool)preg_match('/^([a-z0-9])+$/i', $value);
146
+        return (bool) preg_match('/^([a-z0-9])+$/i', $value);
147 147
     }
148 148
 }
Please login to merge, or discard this patch.
src/Request/CustomerVerificationRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
38 38
     )
39 39
     {
40 40
         $this->payload = [
41
-            'email' => (string)$email,
41
+            'email' => (string) $email,
42 42
             'firstName' => $customer->getFirstName(),
43 43
             'lastName' => $customer->getLastName(),
44
-            'dateOfBirth' => (string)$dateOfBirth,
44
+            'dateOfBirth' => (string) $dateOfBirth,
45 45
             'postCode' => $address->getPostCode(),
46 46
             'country' => $address->getCountry(),
47 47
             'houseNumber' => $address->getHouseNumber(),
Please login to merge, or discard this patch.