Completed
Push — master ( 9a1c48...ac3c51 )
by Florian
03:12
created
lib/Payone/TransactionStatus/Service/HandleRequest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             //
98 98
             $response = new Payone_TransactionStatus_Response('TSOK');
99 99
 
100
-            if($request->getClearingtype() == 'cc') {
100
+            if ($request->getClearingtype() == 'cc') {
101 101
                 $this->_handleTransactionId($request);
102 102
             }
103 103
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $oFactory = new Payone_Core_Model_Factory();
117 117
         $oTransaction = $oFactory->getModelTransaction();
118 118
         $oTransaction->load($oRequest->getReference(), 'reference');
119
-        if($oTransaction->getFrontendApiCall() == 1 && !$oTransaction->getTxid()) {
119
+        if ($oTransaction->getFrontendApiCall() == 1 && !$oTransaction->getTxid()) {
120 120
             $oTransaction->setTxid($oRequest->getTxid());
121 121
             $oTransaction->save();
122 122
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,7 @@
 block discarded – undo
99 99
 
100 100
             // Protocol
101 101
             $this->protocol($request, $response);
102
-        }
103
-        catch (Exception $e) {
102
+        } catch (Exception $e) {
104 103
             $this->protocolException($e, $request);
105 104
             throw $e;
106 105
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Mapper/Request/Payment/Genericpayment.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
     public function map(Payone_Api_Request_Interface $request)
31 31
     {
32 32
         /** @var $request Payone_Api_Request_Authorization */
33
-        if($request->getAmount()) {
33
+        if ($request->getAmount()) {
34 34
             $this->mapAmount($request);
35 35
         }
36 36
 
Please login to merge, or discard this patch.
lib/Payone/Api/Mapper/Response/3dsCheck.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,17 +45,13 @@
 block discarded – undo
45 45
 
46 46
         if ($this->isValid()) {
47 47
             $response = new Payone_Api_Response_3dsCheck_Valid($params);
48
-        }
49
-        elseif ($this->isEnrolled()) {
48
+        } elseif ($this->isEnrolled()) {
50 49
             $response = new Payone_Api_Response_3dsCheck_Enrolled($params);
51
-        }
52
-        elseif ($this->isInvalid()) {
50
+        } elseif ($this->isInvalid()) {
53 51
             $response = new Payone_Api_Response_3dsCheck_Invalid($params);
54
-        }
55
-        elseif ($this->isError()) {
52
+        } elseif ($this->isError()) {
56 53
             $response = new Payone_Api_Response_Error($params);
57
-        }
58
-        else {
54
+        } else {
59 55
             throw new Payone_Api_Exception_UnknownStatus();
60 56
         }
61 57
 
Please login to merge, or discard this patch.
lib/Payone/Api/Mapper/Response/Authorization.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,14 +46,11 @@
 block discarded – undo
46 46
 
47 47
         if ($this->isApproved()) {
48 48
             $response = new Payone_Api_Response_Authorization_Approved($params);
49
-        }
50
-        elseif ($this->isRedirect()) {
49
+        } elseif ($this->isRedirect()) {
51 50
             $response = new Payone_Api_Response_Authorization_Redirect($params);
52
-        }
53
-        elseif ($this->isError()) {
51
+        } elseif ($this->isError()) {
54 52
             $response = new Payone_Api_Response_Error($params);
55
-        }
56
-        else {
53
+        } else {
57 54
             throw new Payone_Api_Exception_UnknownStatus();
58 55
         }
59 56
 
Please login to merge, or discard this patch.
lib/Payone/Api/Mapper/Response/Vauthorization.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,9 @@
 block discarded – undo
46 46
 
47 47
         if ($this->isApproved()) {
48 48
             $response = new Payone_Api_Response_Vauthorization_Approved($params);
49
-        }
50
-        elseif ($this->isError()) {
49
+        } elseif ($this->isError()) {
51 50
             $response = new Payone_Api_Response_Error($params);
52
-        }
53
-        else {
51
+        } else {
54 52
             throw new Payone_Api_Exception_UnknownStatus();
55 53
         }
56 54
 
Please login to merge, or discard this patch.
lib/Payone/Api/Mapper/Response/Consumerscore.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,14 +46,11 @@
 block discarded – undo
46 46
 
47 47
         if ($this->isValid()) {
48 48
             $response = new Payone_Api_Response_Consumerscore_Valid($params);
49
-        }
50
-        elseif ($this->isInvalid()) {
49
+        } elseif ($this->isInvalid()) {
51 50
             $response = new Payone_Api_Response_Consumerscore_Invalid($params);
52
-        }
53
-        elseif ($this->isError()) {
51
+        } elseif ($this->isError()) {
54 52
             $response = new Payone_Api_Response_Error($params);
55
-        }
56
-        else {
53
+        } else {
57 54
             throw new Payone_Api_Exception_UnknownStatus();
58 55
         }
59 56
 
Please login to merge, or discard this patch.
lib/Payone/Api/Mapper/Response/UpdateAccess.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,11 +47,9 @@
 block discarded – undo
47 47
 
48 48
         if ($this->isOk()) {
49 49
             $response = new Payone_Api_Response_Management_UpdateAccess_Ok($params);
50
-        }
51
-        elseif ($this->isError()) {
50
+        } elseif ($this->isError()) {
52 51
             $response = new Payone_Api_Response_Error($params);
53
-        }
54
-        else {
52
+        } else {
55 53
             throw new Payone_Api_Exception_UnknownStatus();
56 54
         }
57 55
 
Please login to merge, or discard this patch.
lib/Payone/Api/Mapper/Response/CreditCardCheck.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,14 +46,11 @@
 block discarded – undo
46 46
 
47 47
         if ($this->isValid()) {
48 48
             $response = new Payone_Api_Response_CreditCardCheck_Valid($params);
49
-        }
50
-        elseif ($this->isInvalid()) {
49
+        } elseif ($this->isInvalid()) {
51 50
             $response = new Payone_Api_Response_CreditCardCheck_Invalid($params);
52
-        }
53
-        elseif ($this->isError()) {
51
+        } elseif ($this->isError()) {
54 52
             $response = new Payone_Api_Response_Error($params);
55
-        }
56
-        else {
53
+        } else {
57 54
             throw new Payone_Api_Exception_UnknownStatus();
58 55
         }
59 56
 
Please login to merge, or discard this patch.
lib/Payone/Api/Mapper/Response/CreateAccess.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,11 +47,9 @@
 block discarded – undo
47 47
 
48 48
         if ($this->isApproved()) {
49 49
             $response = new Payone_Api_Response_CreateAccess_Approved($params);
50
-        }
51
-        elseif ($this->isError()) {
50
+        } elseif ($this->isError()) {
52 51
             $response = new Payone_Api_Response_Error($params);
53
-        }
54
-        else {
52
+        } else {
55 53
             throw new Payone_Api_Exception_UnknownStatus();
56 54
         }
57 55
 
Please login to merge, or discard this patch.