Test Failed
Pull Request — master (#12)
by
unknown
06:46
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/Method/ResultObject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     private function classGetters($class)
107 107
     {
108 108
         $methods = get_class_methods($class);
109
-        return array_filter($methods, function ($value) use ($methods) {
109
+        return array_filter($methods, function($value) use ($methods) {
110 110
             if ($value == 'getErrors') {
111 111
                 return false;
112 112
             }
@@ -134,6 +134,6 @@  discard block
 block discarded – undo
134 134
         $parts = array_map('ucfirst', $parts);
135 135
         $property = implode('', $parts);
136 136
 
137
-        return 'set' . ucfirst($property);
137
+        return 'set'.ucfirst($property);
138 138
     }
139 139
 }
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/Exception/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct(\Exception $previous = null, ResultObjectInterface $result = null)
17 17
     {
18
-        $this->message .= ' Response data: ' . serialize($result);
18
+        $this->message .= ' Response data: '.serialize($result);
19 19
         parent::__construct($this->message, $this->code, $previous);
20 20
 
21 21
         $this->result = $result;
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
@@ -426,7 +426,7 @@
 block discarded – undo
426 426
      */
427 427
     public function setThreeDS2AuthorizationInformation(
428 428
         ThreeDS2AuthorizationInformation $threeDS2AuthorizationInformation
429
-    ){
429
+    ) {
430 430
         $this->threeDS2AuthorizationInformation = $threeDS2AuthorizationInformation;
431 431
     }
432 432
 
Please login to merge, or discard this patch.
src/Method/Payment/Create.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
     {
42 42
         return new Assert\Collection([
43 43
             'amount' =>  $this->buildElement('float', 1),
44
-            'currency' => $this->buildElement('string', 1, ['min' => 3,'max' => 3]),
44
+            'currency' => $this->buildElement('string', 1, ['min' => 3, 'max' => 3]),
45 45
             'settle' => $this->buildElement('bool'),
46
-            'order_id' => $this->buildElement('string', 0, ['min' => 2,'max' => 50]),
46
+            'order_id' => $this->buildElement('string', 0, ['min' => 2, 'max' => 50]),
47 47
             'description' => $this->buildElement('string', 0, ['max' => 255]),
48
-            'country' => $this->buildElement('string', 1, ['min' => 2,'max' => 2]),
48
+            'country' => $this->buildElement('string', 1, ['min' => 2, 'max' => 2]),
49 49
             'payment_method' => new Assert\Required([
50 50
                 new Assert\Type(['type' => 'string']),
51 51
                 new Assert\Choice([
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                     ]),
74 74
                     'exp_year' => $this->buildElement(
75 75
                         'integer', 1, 
76
-                        ['min' => 4,'max' => 4],
76
+                        ['min' => 4, 'max' => 4],
77 77
                         new Assert\Range(['min' => date('Y')]),
78 78
                     ),
79 79
                     'exp_month' => $this->buildElement('integer', 1),
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         ]); 
148 148
     }
149 149
 
150
-    private function buildElement($typeValue, $isRequired=0, $length=0, $args=0)
150
+    private function buildElement($typeValue, $isRequired = 0, $length = 0, $args = 0)
151 151
     {
152 152
         $inside_array = [
153 153
             new Assert\Type(['type', $typeValue]),
Please login to merge, or discard this patch.