Completed
Push — master ( a6e4ea...ae9fdb )
by Florian
14s
created
lib/Payone/Api/Mapper/Response/Preauthorization.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -46,17 +46,13 @@
 block discarded – undo
46 46
 
47 47
         if ($this->isApproved()) {
48 48
             $response = new Payone_Api_Response_Preauthorization_Approved($params);
49
-        }
50
-        elseif ($this->isRedirect()) {
49
+        } elseif ($this->isRedirect()) {
51 50
             $response = new Payone_Api_Response_Preauthorization_Redirect($params);
52
-        }
53
-        elseif ($this->isPending()) {
51
+        } elseif ($this->isPending()) {
54 52
             $response = new Payone_Api_Response_Preauthorization_Pending($params);
55
-        }
56
-        elseif ($this->isError()) {
53
+        } elseif ($this->isError()) {
57 54
             $response = new Payone_Api_Response_Error($params);
58
-        }
59
-        else {
55
+        } else {
60 56
             throw new Payone_Api_Exception_UnknownStatus();
61 57
         }
62 58
 
Please login to merge, or discard this patch.