@@ -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(); |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | { |
| 105 | 105 | $remoteAddr = $_SERVER['REMOTE_ADDR']; |
| 106 | 106 | if ($this->getProxyCheckEnabled() == 1) { |
| 107 | - if(array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) { |
|
| 107 | + if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) { |
|
| 108 | 108 | $proxy = $_SERVER['HTTP_X_FORWARDED_FOR']; |
| 109 | 109 | if (!empty($proxy)) { |
| 110 | 110 | $proxyIps = explode(',', $proxy); |
@@ -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(); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | $constants = $this->getClassConstants('Payone_Enum_ClearingType'); |
| 42 | 42 | |
| 43 | - if($blFlipArray === true) { |
|
| 43 | + if ($blFlipArray === true) { |
|
| 44 | 44 | $constants = array_flip($constants); |
| 45 | 45 | } |
| 46 | 46 | return $constants; |
@@ -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(); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | foreach ($objectArray as $key => $value) { |
| 79 | 79 | |
| 80 | - if($value instanceof Payone_Api_Response_Parameter_Interface){ |
|
| 80 | + if ($value instanceof Payone_Api_Response_Parameter_Interface) { |
|
| 81 | 81 | $stringArray[] = $this->apply($value->toArray()); |
| 82 | 82 | } elseif ($value !== null) { |
| 83 | 83 | $filter = $this->getFilterConfig($key); |
@@ -87,9 +87,9 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - if(is_array($value)) { |
|
| 90 | + if (is_array($value)) { |
|
| 91 | 91 | foreach ($value as $sArrayKey => $sArrayValue) { |
| 92 | - $stringArray[] = $key.'_'.$sArrayKey.'='.$sArrayValue; |
|
| 92 | + $stringArray[] = $key . '_' . $sArrayKey . '=' . $sArrayValue; |
|
| 93 | 93 | } |
| 94 | 94 | } else { |
| 95 | 95 | $stringArray[] = $key . '=' . $value; |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | public function setFilters(array $filters) |
| 127 | 127 | { |
| 128 | 128 | $this->filters = array(); |
| 129 | - foreach($filters as $key => /** @var $value Payone_Protocol_Filter_Interface */ $value) |
|
| 129 | + foreach ($filters as $key => /** @var $value Payone_Protocol_Filter_Interface */ $value) |
|
| 130 | 130 | { |
| 131 | 131 | $this->addFilter($value); |
| 132 | 132 | } |
@@ -159,8 +159,8 @@ discard block |
||
| 159 | 159 | */ |
| 160 | 160 | public function getFilterConfig($key) |
| 161 | 161 | { |
| 162 | - foreach($this->filters_config as $filter => $config) { |
|
| 163 | - if(in_array($key, $config)) { |
|
| 162 | + foreach ($this->filters_config as $filter => $config) { |
|
| 163 | + if (in_array($key, $config)) { |
|
| 164 | 164 | return $this->getFilter($filter); |
| 165 | 165 | } |
| 166 | 166 | } |
@@ -235,14 +235,14 @@ |
||
| 235 | 235 | /** |
| 236 | 236 | * @return Payone_Api_Request_Parameter_Authorization_PaymentMethod_RatePay |
| 237 | 237 | */ |
| 238 | - function getRatePay(){ |
|
| 238 | + function getRatePay() { |
|
| 239 | 239 | return $this->ratePay; |
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | /** |
| 243 | 243 | * @param Payone_Api_Request_Parameter_Authorization_PaymentMethod_RatePay $ratePay |
| 244 | 244 | */ |
| 245 | - function setRatePay(Payone_Api_Request_Parameter_Authorization_PaymentMethod_RatePay $ratePay){ |
|
| 245 | + function setRatePay(Payone_Api_Request_Parameter_Authorization_PaymentMethod_RatePay $ratePay) { |
|
| 246 | 246 | $this->ratePay = $ratePay; |
| 247 | 247 | } |
| 248 | 248 | |