@@ -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 | } |