Test Failed
Push — master ( 9b6075...5a1362 )
by
unknown
01:27 queued 14s
created
src/Client.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         $validator = Validation::createValidator();
64 64
 
65
-        if(isset($options['apiEndpoint'])){
65
+        if (isset($options['apiEndpoint'])) {
66 66
             self::validateClientEndpoint($options, $validator);
67 67
             self::$url = $options['apiEndpoint'];
68 68
         }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             $this->getOptions($method)
143 143
         );
144 144
 
145
-        if(!is_array($result)){
145
+        if (!is_array($result)) {
146 146
             throw new Exception\UnexpectedError('Unexpected error :'.$result);
147 147
         }
148 148
 
@@ -205,11 +205,11 @@  discard block
 block discarded – undo
205 205
      * @param [Validator] $validator
206 206
      * @return void
207 207
      */
208
-    private static function validateClientEndpoint($options, $validator){
208
+    private static function validateClientEndpoint($options, $validator) {
209 209
         $violations = $validator->validate($options['apiEndpoint'], [
210 210
             new Url(),
211 211
         ]);
212
-        if(count($violations) != 0){
212
+        if (count($violations) != 0) {
213 213
             throw new Exception\InvalidAttributeValue(
214 214
                 'Your API endpoint is not a valid URL',
215 215
                 $violations
Please login to merge, or discard this patch.
src/Http/Guzzle/ExceptionMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
             $resultObject = new Error();
82 82
         }
83 83
 
84
-        if(!is_array($response)){
84
+        if (!is_array($response)) {
85 85
             throw new UnexpectedError('Unexpected error : "'.$exception->getMessage().'"', $exception->getCode());
86 86
         }
87 87
 
Please login to merge, or discard this patch.
src/Method/PaymentLink/PaymentLink.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -7,59 +7,59 @@  discard block
 block discarded – undo
7 7
 class PaymentLink extends ResultObject
8 8
 {
9 9
     /**
10
-      * @type string ID of the payment link.
11
-      * Value assigned by Cardinity.
12
-      */
10
+     * @type string ID of the payment link.
11
+     * Value assigned by Cardinity.
12
+     */
13 13
     private $id;
14 14
 
15 15
     /** @type string URL of the payment link.
16
-      * Value assigned by Cardinity.
17
-      */
16
+     * Value assigned by Cardinity.
17
+     */
18 18
     private $url;
19 19
 
20 20
     /**
21
-      * @type float Amount charged shown in #0.00 format.
22
-      */
21
+     * @type float Amount charged shown in #0.00 format.
22
+     */
23 23
     private $amount;
24 24
 
25 25
     /**
26
-      * @type string Three-letter ISO currency code representing the currency in
27
-      * which the charge was made.
28
-      */
26
+     * @type string Three-letter ISO currency code representing the currency in
27
+     * which the charge was made.
28
+     */
29 29
     private $currency;
30 30
 
31 31
     /**
32
-      * @type string Country of a customer provided by a merchant.
33
-      * ISO 3166-1 alpha-2 country code.
34
-      */
32
+     * @type string Country of a customer provided by a merchant.
33
+     * ISO 3166-1 alpha-2 country code.
34
+     */
35 35
     private $country;
36 36
 
37 37
     /**
38
-      * @type string Payment Link description provided by a merchant.
39
-      * Maximum length 255 characters.
40
-      */
38
+     * @type string Payment Link description provided by a merchant.
39
+     * Maximum length 255 characters.
40
+     */
41 41
     private $description;
42 42
 
43 43
     /**
44
-      * @type string Payment Link Expiration datetime as defined in RFC 3339 Section 5.6.
45
-      * UTC timezone.
46
-      * optional, if not defined default will be 7 days from now
47
-      */
44
+     * @type string Payment Link Expiration datetime as defined in RFC 3339 Section 5.6.
45
+     * UTC timezone.
46
+     * optional, if not defined default will be 7 days from now
47
+     */
48 48
     private $expiration_date;
49 49
 
50 50
     /**
51
-      * @type boolean Indicates whether the payment link can be used more than once
52
-      * mode.
53
-      * Value assigned by Cardinity.
54
-      * Default value is false
55
-      */
51
+     * @type boolean Indicates whether the payment link can be used more than once
52
+     * mode.
53
+     * Value assigned by Cardinity.
54
+     * Default value is false
55
+     */
56 56
     private $multiple_use;
57 57
 
58 58
     /**
59
-      * @type boolean Indicates whether the payment link is enabled
60
-      * mode.
61
-      * Value assigned by Cardinity.
62
-      */
59
+     * @type boolean Indicates whether the payment link is enabled
60
+     * mode.
61
+     * Value assigned by Cardinity.
62
+     */
63 63
     private $enabled;
64 64
 
65 65
 
@@ -169,11 +169,11 @@  discard block
 block discarded – undo
169 169
         return $this->expiration_date;
170 170
     }
171 171
 
172
-       /**
173
-     * Sets the value of expiration_date.
174
-     * @param mixed $expiration_date the expiration_date
175
-     * @return void
176
-     */
172
+        /**
173
+         * Sets the value of expiration_date.
174
+         * @param mixed $expiration_date the expiration_date
175
+         * @return void
176
+         */
177 177
     public function setExpirationDate($expiration_date)
178 178
     {
179 179
         $this->expiration_date = $expiration_date;
Please login to merge, or discard this patch.
src/Method/Chargeback/Chargeback.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -7,61 +7,61 @@
 block discarded – undo
7 7
 class Chargeback extends ResultObject
8 8
 {
9 9
     /**
10
-      * @type string UUID of the Chargeback.
11
-      * Value assigned by Cardinity.
12
-      */
10
+     * @type string UUID of the Chargeback.
11
+     * Value assigned by Cardinity.
12
+     */
13 13
     private $id;
14 14
 
15 15
 
16 16
     /**
17
-      * @type float Amount charged shown in #0.00 format.
18
-      */
17
+     * @type float Amount charged shown in #0.00 format.
18
+     */
19 19
     private $amount;
20 20
 
21 21
     /**
22
-      * @type string Three-letter ISO currency code representing the currency in
23
-      * which the charge was made.
24
-      */
22
+     * @type string Three-letter ISO currency code representing the currency in
23
+     * which the charge was made.
24
+     */
25 25
     private $currency;
26 26
 
27 27
     /**
28
-      * @type string Can only have value 'chargeback'
29
-      */
28
+     * @type string Can only have value 'chargeback'
29
+     */
30 30
     private $type;
31 31
 
32 32
     /**
33
-      * @type string Chargeback Creation time RFC 3339 Section 5.6.
34
-      * UTC timezone.
35
-      */
33
+     * @type string Chargeback Creation time RFC 3339 Section 5.6.
34
+     * UTC timezone.
35
+     */
36 36
     private $created;
37 37
 
38 38
     /**
39
-      * @type boolean Indicates whether chargeback was created in live or sandbox
40
-      */
39
+     * @type boolean Indicates whether chargeback was created in live or sandbox
40
+     */
41 41
     private $live;
42 42
 
43 43
     /**
44
-      * @type string Parent UUID of the Chargeback.
45
-      * Value assigned by Cardinity.
46
-      */
44
+     * @type string Parent UUID of the Chargeback.
45
+     * Value assigned by Cardinity.
46
+     */
47 47
     private $parent_id;
48 48
 
49 49
     /**
50
-      * @type string Status of chargeback
51
-      * Can only be 'approved' or 'declined'
52
-      */
50
+     * @type string Status of chargeback
51
+     * Can only be 'approved' or 'declined'
52
+     */
53 53
     private $status;
54 54
 
55 55
     /**
56
-      * @type string Reason of chargeback
57
-      * Chargeback reason (Only present if chargeback status is approved).
58
-      * Format is "reason_code: reason_message"
59
-      */
56
+     * @type string Reason of chargeback
57
+     * Chargeback reason (Only present if chargeback status is approved).
58
+     * Format is "reason_code: reason_message"
59
+     */
60 60
     private $reason;
61 61
 
62 62
     /**
63
-      * @type string Description of chargeback
64
-      */
63
+     * @type string Description of chargeback
64
+     */
65 65
     private $description;
66 66
 
67 67
 
Please login to merge, or discard this patch.