@@ -75,8 +75,7 @@ |
||
| 75 | 75 | $response = $this->getMapperResponse()->map($responseRaw); |
| 76 | 76 | |
| 77 | 77 | $this->protocol($request, $response); |
| 78 | - } |
|
| 79 | - catch (Exception $e) { |
|
| 78 | + } catch (Exception $e) { |
|
| 80 | 79 | $this->protocolException($e, $request); |
| 81 | 80 | throw $e; |
| 82 | 81 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | - * @return string |
|
| 98 | + * @return integer |
|
| 99 | 99 | */ |
| 100 | 100 | public function getBirthday() |
| 101 | 101 | { |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | /** |
| 262 | - * @return string |
|
| 262 | + * @return integer |
|
| 263 | 263 | */ |
| 264 | 264 | public function getUserid() |
| 265 | 265 | { |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | - * @return string |
|
| 98 | + * @return integer |
|
| 99 | 99 | */ |
| 100 | 100 | public function getBirthday() |
| 101 | 101 | { |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | /** |
| 262 | - * @return string |
|
| 262 | + * @return integer |
|
| 263 | 263 | */ |
| 264 | 264 | public function getUserid() |
| 265 | 265 | { |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | protected $data = NULL; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @param int $key |
|
| 34 | 33 | * @return array |
| 35 | 34 | */ |
| 36 | 35 | public function toArray() |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @param $key |
|
| 56 | + * @param string $key |
|
| 57 | 57 | * @return Payone_TransactionStatus_Service_HandleRequest |
| 58 | 58 | * @throws Exception |
| 59 | 59 | */ |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | |
| 100 | 100 | protected function _toString($aValue) |
| 101 | 101 | { |
| 102 | - if($this->applyFilters) { |
|
| 102 | + if ($this->applyFilters) { |
|
| 103 | 103 | $result = $this->applyFilters->apply($aValue); |
| 104 | 104 | } else { |
| 105 | 105 | $protocolFactory = new Payone_Protocol_Factory(); |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | foreach ($this as $key => $data) { |
| 76 | 76 | if ($data === null) { |
| 77 | 77 | continue; |
| 78 | - } |
|
| 79 | - elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 78 | + } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 80 | 79 | $result[$key] = $data; |
| 81 | 80 | } |
| 82 | 81 | } |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | |
| 100 | 100 | protected function _toString($aValue) |
| 101 | 101 | { |
| 102 | - if($this->applyFilters) { |
|
| 102 | + if ($this->applyFilters) { |
|
| 103 | 103 | $result = $this->applyFilters->apply($aValue); |
| 104 | 104 | } else { |
| 105 | 105 | $protocolFactory = new Payone_Protocol_Factory(); |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | foreach ($this as $key => $data) { |
| 76 | 76 | if ($data === null) { |
| 77 | 77 | continue; |
| 78 | - } |
|
| 79 | - elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 78 | + } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 80 | 79 | $result[$key] = $data; |
| 81 | 80 | } |
| 82 | 81 | } |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | $response = $this->getMapperResponse()->map($responseRaw); |
| 76 | 76 | |
| 77 | 77 | $this->protocol($request, $response); |
| 78 | - } |
|
| 79 | - catch (Exception $e) { |
|
| 78 | + } catch (Exception $e) { |
|
| 80 | 79 | $this->protocolException($e, $request); |
| 81 | 80 | throw $e; |
| 82 | 81 | } |
@@ -45,14 +45,11 @@ |
||
| 45 | 45 | |
| 46 | 46 | if ($this->isValid()) { |
| 47 | 47 | $response = new Payone_Api_Response_AddressCheck_Valid($params); |
| 48 | - } |
|
| 49 | - elseif ($this->isInvalid()) { |
|
| 48 | + } elseif ($this->isInvalid()) { |
|
| 50 | 49 | $response = new Payone_Api_Response_AddressCheck_Invalid($params); |
| 51 | - } |
|
| 52 | - elseif ($this->isError()) { |
|
| 50 | + } elseif ($this->isError()) { |
|
| 53 | 51 | $response = new Payone_Api_Response_Error($params); |
| 54 | - } |
|
| 55 | - else { |
|
| 52 | + } else { |
|
| 56 | 53 | throw new Payone_Api_Exception_UnknownStatus(); |
| 57 | 54 | } |
| 58 | 55 | |