@@ -60,8 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | if ($this->isError()) { |
62 | 62 | $result = parent::__toString(); |
63 | - } |
|
64 | - else { |
|
63 | + } else { |
|
65 | 64 | $stringArray = array('status=' . $this->getStatus(), 'data=PDF-Content'); |
66 | 65 | $result = implode('|', $stringArray); |
67 | 66 | } |
@@ -46,11 +46,9 @@ |
||
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 |
@@ -46,11 +46,9 @@ |
||
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 |
@@ -46,14 +46,11 @@ |
||
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 |
@@ -46,14 +46,11 @@ |
||
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 |
@@ -47,13 +47,11 @@ |
||
47 | 47 | |
48 | 48 | if ($this->isError()) { |
49 | 49 | $response = new Payone_Api_Response_Error($params); |
50 | - } |
|
51 | - elseif (empty($params) || $this->isApproved() || $this->isBlocked() || $this->isEnrolled() || |
|
50 | + } elseif (empty($params) || $this->isApproved() || $this->isBlocked() || $this->isEnrolled() || |
|
52 | 51 | $this->isInvalid() || $this->isRedirect() || $this->isValid() |
53 | 52 | ) { |
54 | 53 | throw new Payone_Api_Exception_UnknownStatus(); |
55 | - } |
|
56 | - else { |
|
54 | + } else { |
|
57 | 55 | $params = array('response' => $params); |
58 | 56 | $response = new Payone_Api_Response_Management_GetFile($params); |
59 | 57 | $response->setStatus(Payone_Api_Enum_ResponseType::VALID); |
@@ -46,14 +46,11 @@ |
||
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 |
@@ -46,11 +46,9 @@ |
||
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 |
@@ -46,11 +46,9 @@ |
||
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 |