@@ -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 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | public function __toString() |
64 | 64 | { |
65 | - if($this->applyFilters) { |
|
65 | + if ($this->applyFilters) { |
|
66 | 66 | $result = $this->applyFilters->apply($this->toArray()); |
67 | 67 | } else { |
68 | 68 | $protocolFactory = new Payone_Protocol_Factory(); |
@@ -83,8 +83,7 @@ |
||
83 | 83 | { |
84 | 84 | if ($data === null) { |
85 | 85 | continue; |
86 | - } |
|
87 | - elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
86 | + } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
88 | 87 | $result[$key] = $data; |
89 | 88 | } |
90 | 89 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | public function __toString() |
64 | 64 | { |
65 | - if($this->applyFilters) { |
|
65 | + if ($this->applyFilters) { |
|
66 | 66 | $result = $this->applyFilters->apply($this->toArray()); |
67 | 67 | } else { |
68 | 68 | $protocolFactory = new Payone_Protocol_Factory(); |
@@ -83,8 +83,7 @@ |
||
83 | 83 | { |
84 | 84 | if ($data === null) { |
85 | 85 | continue; |
86 | - } |
|
87 | - elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
86 | + } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
88 | 87 | $result[$key] = $data; |
89 | 88 | } |
90 | 89 | } |