@@ -27,7 +27,7 @@ |
||
27 | 27 | /** @var string */ |
28 | 28 | protected $key = Payone_Enum_ClearingType::PAYOLUTION; |
29 | 29 | |
30 | - /** |
|
30 | + /** |
|
31 | 31 | * @return string |
32 | 32 | */ |
33 | 33 | public function getKey() |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** @var string */ |
28 | 28 | protected $key = Payone_Enum_ClearingType::PAYOLUTIONDEBIT; |
29 | 29 | |
30 | - /** |
|
30 | + /** |
|
31 | 31 | * @return string |
32 | 32 | */ |
33 | 33 | public function getKey() |
@@ -36,7 +36,7 @@ |
||
36 | 36 | const GIROPAY = 'GPY'; |
37 | 37 | const EPS_ONLINE_BANK_TRANSFER = 'EPS'; |
38 | 38 | const POSTFINANCE_EFINANCE = 'PFF'; |
39 | - const POSTFINANCE_CARD = 'PFC'; |
|
39 | + const POSTFINANCE_CARD = 'PFC'; |
|
40 | 40 | const IDEAL = 'IDL'; |
41 | 41 | const P24 = 'P24'; |
42 | 42 | const BANCONTACT = 'BCT'; |
@@ -46,17 +46,13 @@ |
||
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 |