Passed
Pull Request — master (#14)
by
unknown
02:59
created
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/DotpayManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      * @throws Exceptions\RequestIntegrityException
50 50
      * @throws \GuzzleHttp\Exception\GuzzleException
51 51
      */
52
-    public function refundPayment($operation_number, $data){
52
+    public function refundPayment($operation_number, $data) {
53 53
         return $this->dotpayApi->refundPayment($operation_number, $data);
54 54
     }
55 55
 
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
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      * @throws \Evilnet\Dotpay\Exceptions\RequestIntegrityException
58 58
      * @throws \GuzzleHttp\Exception\GuzzleException
59 59
      */
60
-    public function refundPayment($operation_number, $payment){
60
+    public function refundPayment($operation_number, $payment) {
61 61
         return $this->client->makeRequest(new CreateRefund($operation_number, $payment));
62 62
     }
63 63
 
Please login to merge, or discard this patch.