Test Failed
Pull Request — master (#52)
by
unknown
01:18
created
src/Method/ResultObjectMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     {
74 74
         $parts = explode('_', $field);
75 75
         array_map('ucfirst', $parts);
76
-        $name = 'set' . implode('', $parts);
76
+        $name = 'set'.implode('', $parts);
77 77
 
78 78
         return $name;
79 79
     }
Please login to merge, or discard this patch.
src/Exception/InvalidAttributeValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
     public function __construct($message, ConstraintViolationListInterface $violations)
13 13
     {
14
-        $message .= ' Violations: ' . $violations->__toString();
14
+        $message .= ' Violations: '.$violations->__toString();
15 15
         parent::__construct($message);
16 16
 
17 17
         $this->violations = $violations;
Please login to merge, or discard this patch.
src/Method/Payment/Finalize.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      * @param STRING authorize data 'cres' or 'authorize_data'
17 17
      * @param BOOL should it be 3D secure v2 ?
18 18
      */
19
-    public function __construct(string $paymentId, string $authorizeData, $isV2=false)
19
+    public function __construct(string $paymentId, string $authorizeData, $isV2 = false)
20 20
     {
21 21
         $this->paymentId = $paymentId;
22 22
         $this->authorizeData = $authorizeData;
Please login to merge, or discard this patch.
src/Method/Payment/Payment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -405,7 +405,7 @@
 block discarded – undo
405 405
      */
406 406
     public function setThreeds2Data(
407 407
         ThreeDS2AuthorizationInformation $threeDS2AuthorizationInformation
408
-    ){
408
+    ) {
409 409
         $this->threeDS2AuthorizationInformation = $threeDS2AuthorizationInformation;
410 410
     }
411 411
 
Please login to merge, or discard this patch.
src/Method/Validators/CallbackUrlConstraint.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
     const RESTRICTED_DOMAIN = 'localhost';
13 13
     const RESTRICTED_IP = '127.0.0.1';
14 14
 
15
-    public $message = 'The url "{{ param }}" contains restricted values. Do not use "' .
16
-        self::RESTRICTED_DOMAIN . '" or "' . self::RESTRICTED_IP . '".';
15
+    public $message = 'The url "{{ param }}" contains restricted values. Do not use "'.
16
+        self::RESTRICTED_DOMAIN.'" or "'.self::RESTRICTED_IP.'".';
17 17
 }
Please login to merge, or discard this patch.
src/Method/ResultObject.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     }
113 113
 
114 114
 
115
-    public function __serialize(): array {return[];}
115
+    public function __serialize(): array {return[]; }
116 116
     public function __unserialize(array $data): void {}
117 117
 
118 118
     /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     private function classGetters($class)
123 123
     {
124 124
         $methods = get_class_methods($class);
125
-        return array_filter($methods, function ($value) use ($methods) {
125
+        return array_filter($methods, function($value) use ($methods) {
126 126
             if ($value == 'getErrors') {
127 127
                 return false;
128 128
             }
@@ -159,6 +159,6 @@  discard block
 block discarded – undo
159 159
         $parts = array_map('ucfirst', $parts);
160 160
         $property = implode('', $parts);
161 161
 
162
-        return 'set' . ucfirst($property);
162
+        return 'set'.ucfirst($property);
163 163
     }
164 164
 }
Please login to merge, or discard this patch.
src/Method/Chargeback/Get.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public function __construct($payment_id, $chargeback_id)
14 14
     {
15 15
         $this->payment_id = $payment_id;
16
-        $this->chargeback_id =$chargeback_id;
16
+        $this->chargeback_id = $chargeback_id;
17 17
     }
18 18
 
19 19
     public function getChargebackId()
Please login to merge, or discard this patch.
src/Method/Chargeback/GetAll.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     public function getAction()
32 32
     {
33
-        if($this->payment_id == null){
33
+        if ($this->payment_id == null) {
34 34
             return 'payments/chargebacks';
35 35
         } else {
36 36
             return sprintf('payments/%s/chargebacks/', $this->payment_id);
Please login to merge, or discard this patch.
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.