@@ -60,8 +60,7 @@ |
||
| 60 | 60 | { |
| 61 | 61 | if ($this->isError()) { |
| 62 | 62 | $result = parent::__toString(); |
| 63 | - } |
|
| 64 | - else { |
|
| 63 | + } else { |
|
| 65 | 64 | $stringArray = array('status=' . $this->getStatus(), 'data=PDF-Content'); |
| 66 | 65 | $result = implode('|', $stringArray); |
| 67 | 66 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $stringArray = array(); |
| 77 | 77 | |
| 78 | 78 | foreach ($objectArray as $key => $value) { |
| 79 | - if($value instanceof Payone_Api_Response_Parameter_Interface){ |
|
| 79 | + if ($value instanceof Payone_Api_Response_Parameter_Interface) { |
|
| 80 | 80 | $stringArray[] = $this->apply($value->toArray()); |
| 81 | 81 | } elseif ($value !== null) { |
| 82 | 82 | $filter = $this->getFilterConfig($key); |
@@ -86,9 +86,9 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - if(is_array($value)) { |
|
| 89 | + if (is_array($value)) { |
|
| 90 | 90 | foreach ($value as $sArrayKey => $sArrayValue) { |
| 91 | - $stringArray[] = $key.'_'.$sArrayKey.'='.$sArrayValue; |
|
| 91 | + $stringArray[] = $key . '_' . $sArrayKey . '=' . $sArrayValue; |
|
| 92 | 92 | } |
| 93 | 93 | } else { |
| 94 | 94 | $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 | } |
@@ -160,8 +160,8 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | public function getFilterConfig($key) |
| 162 | 162 | { |
| 163 | - foreach($this->filters_config as $filter => $config) { |
|
| 164 | - if(in_array($key, $config)) { |
|
| 163 | + foreach ($this->filters_config as $filter => $config) { |
|
| 164 | + if (in_array($key, $config)) { |
|
| 165 | 165 | return $this->getFilter($filter); |
| 166 | 166 | } |
| 167 | 167 | } |