Passed
Pull Request — master (#13)
by
unknown
03:46
created
src/DotpayManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      * @param $data
46 46
      * @return mixed
47 47
      */
48
-    public function refundPayment($data){
48
+    public function refundPayment($data) {
49 49
         return $this->dotpayApi->refundPayment($data);
50 50
     }
51 51
 
Please login to merge, or discard this patch.
src/DotpayApi/Requests/CreateRefund.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,14 +39,14 @@
 block discarded – undo
39 39
      */
40 40
     public function __construct($operation_number, $data)
41 41
     {
42
-        if(!$operation_number){
42
+        if (!$operation_number) {
43 43
             throw new RequestIntegrityException("Operation number is not set");
44 44
         }
45 45
 
46 46
         $this->operation_number = $operation_number;
47 47
 
48 48
         foreach ($data as $key => $value) {
49
-            if(!$value || is_numeric($value) && $value <= 0){
49
+            if (!$value || is_numeric($value) && $value <= 0) {
50 50
                 throw new RequestIntegrityException();
51 51
             }
52 52
             $this->$key = $value;
Please login to merge, or discard this patch.
src/DotpayApi/DotpayApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      * @param $payment
54 54
      * @return mixed
55 55
      */
56
-    public function refundPayment($payment){
56
+    public function refundPayment($payment) {
57 57
         return $this->client->makeRequest(new CreateRefund($this->config['shop_id'], $payment));
58 58
     }
59 59
 
Please login to merge, or discard this patch.