@@ -159,7 +159,7 @@ |
||
| 159 | 159 | public function setStreet($street) |
| 160 | 160 | { |
| 161 | 161 | $sNewStreet2 = ''; |
| 162 | - if(stripos($street, '\n') !== false) {//MAGE-195 - split address by the \n and write it in the 2. address field |
|
| 162 | + if (stripos($street, '\n') !== false) {//MAGE-195 - split address by the \n and write it in the 2. address field |
|
| 163 | 163 | $aStreetExpl = explode('\n', $street); |
| 164 | 164 | |
| 165 | 165 | $street = $aStreetExpl[0]; |
@@ -73,8 +73,7 @@ discard block |
||
| 73 | 73 | { |
| 74 | 74 | if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_CORRECT) { |
| 75 | 75 | return TRUE; |
| 76 | - } |
|
| 77 | - else { |
|
| 76 | + } else { |
|
| 78 | 77 | return FALSE; |
| 79 | 78 | } |
| 80 | 79 | } |
@@ -86,8 +85,7 @@ discard block |
||
| 86 | 85 | { |
| 87 | 86 | if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_CORRECTABLE) { |
| 88 | 87 | return TRUE; |
| 89 | - } |
|
| 90 | - else { |
|
| 88 | + } else { |
|
| 91 | 89 | return FALSE; |
| 92 | 90 | } |
| 93 | 91 | } |
@@ -99,8 +97,7 @@ discard block |
||
| 99 | 97 | { |
| 100 | 98 | if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_NONE_CORRECTABLE) { |
| 101 | 99 | return TRUE; |
| 102 | - } |
|
| 103 | - else { |
|
| 100 | + } else { |
|
| 104 | 101 | return FALSE; |
| 105 | 102 | } |
| 106 | 103 | } |
@@ -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() |