@@ -49,7 +49,7 @@ |
||
| 49 | 49 | public function toArray() { |
| 50 | 50 | $result = array(); |
| 51 | 51 | foreach ($this as $key => $data) { |
| 52 | - if (!is_array($data) and ! is_object($data)) { |
|
| 52 | + if (!is_array($data) and !is_object($data)) { |
|
| 53 | 53 | $result[$key] = $data; |
| 54 | 54 | } else if ($data instanceof Payone_Api_Response_Parameter_Interface) { |
| 55 | 55 | /** |
@@ -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]; |
@@ -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(); |
@@ -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(); |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | |
| 75 | 75 | $requestParams = $this->getMapperRequest()->map($request); |
| 76 | 76 | |
| 77 | - if($request->isFrontendApiCall() === false) { |
|
| 77 | + if ($request->isFrontendApiCall() === false) { |
|
| 78 | 78 | $responseRaw = $this->getAdapter()->request($requestParams); |
| 79 | 79 | } else { |
| 80 | 80 | $responseRaw = $request->getFrontendApiResponse(); |
@@ -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(); |