Passed
Pull Request — master (#13)
by
unknown
02:29
created
src/Request/CustomerVerificationRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
         MerchantID $merchantId, CustomerId $customerId = null)
33 33
     {
34 34
         $this->payload = [
35
-            'email' => (string)$email,
35
+            'email' => (string) $email,
36 36
             'firstName' => $customer->getFirstName(),
37 37
             'lastName' => $customer->getLastName(),
38
-            'dateOfBirth' => (string)$dateOfBirth,
38
+            'dateOfBirth' => (string) $dateOfBirth,
39 39
             'postCode' => $address->getPostCode(),
40 40
             'country' => $address->getCountry(),
41 41
             'houseNumber' => $address->getHouseNumber(),
Please login to merge, or discard this patch.
src/Request/Traits/AmountFormatterTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
     {
21 21
         $formatter = new DecimalMoneyFormatter(new ISOCurrencies());
22 22
 
23
-        return (float)$formatter->format($money);
23
+        return (float) $formatter->format($money);
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
src/Request/RefundRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function __construct(TransactionID $transactionId, Money $amount = null)
28 28
     {
29 29
         $this->payload = [
30
-            'transaction_id' => (string)$transactionId,
30
+            'transaction_id' => (string) $transactionId,
31 31
         ];
32 32
 
33 33
         if (null != $amount) {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function setStatusUrl(Url $url): self
44 44
     {
45
-        $this->payload['refund_status_url'] = (string)$url;
45
+        $this->payload['refund_status_url'] = (string) $url;
46 46
 
47 47
         return $this;
48 48
     }
Please login to merge, or discard this patch.
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.