@@ -89,7 +89,7 @@ |
||
| 89 | 89 | */ |
| 90 | 90 | public function getPayDataArray() { |
| 91 | 91 | $aPayData = array(); |
| 92 | - foreach($this->getPayData()->getItems() as $item) { |
|
| 92 | + foreach ($this->getPayData()->getItems() as $item) { |
|
| 93 | 93 | $sCorrectedKey = strtolower($item->getKey()); |
| 94 | 94 | $sCorrectedKey = str_replace('-', '_', $sCorrectedKey); |
| 95 | 95 | $aPayData[$sCorrectedKey] = $item->getData(); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * @param null|Payone_Api_Response_Interface $response |
| 45 | 45 | */ |
| 46 | 46 | public function protocol(Payone_Api_Request_Interface $request, |
| 47 | - Payone_Api_Response_Interface $response = null) |
|
| 47 | + Payone_Api_Response_Interface $response = null) |
|
| 48 | 48 | { |
| 49 | 49 | $request->setApplyFilters($this->getServiceApplyFilters()); |
| 50 | 50 | $response->setApplyFilters($this->getServiceApplyFilters()); |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | |
| 67 | 67 | $requestParams = $this->getMapperRequest()->map($request); |
| 68 | 68 | |
| 69 | - if($request->isFrontendApiCall() === false) { |
|
| 69 | + if ($request->isFrontendApiCall() === false) { |
|
| 70 | 70 | $responseRaw = $this->getAdapter()->request($requestParams); |
| 71 | 71 | } else { |
| 72 | 72 | $responseRaw = $request->getFrontendApiResponse(); |
@@ -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 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | |
| 73 | 73 | $response->setRawResponse($adapter->getRawResponse()); |
| 74 | 74 | |
| 75 | - $this->protocol($request, $response); |
|
| 75 | + $this->protocol($request, $response); |
|
| 76 | 76 | } |
| 77 | 77 | catch (Exception $e) { |
| 78 | 78 | $this->protocolException($e, $request); |
@@ -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 | } |
@@ -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 | */ |