@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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(); |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | foreach ($this as $key => $data) { |
| 76 | 76 | if ($data === null) { |
| 77 | 77 | continue; |
| 78 | - } |
|
| 79 | - elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 78 | + } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 80 | 79 | $result[$key] = $data; |
| 81 | 80 | } |
| 82 | 81 | } |
@@ -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 | } |
@@ -12,7 +12,6 @@ discard block |
||
| 12 | 12 | * Do not edit or add to this file if you wish to upgrade Payone to newer |
| 13 | 13 | * versions in the future. If you wish to customize Payone for your |
| 14 | 14 | * needs please refer to http://www.payone.de for more information. |
| 15 | - |
|
| 16 | 15 | * @category Payone |
| 17 | 16 | * @package Payone_Api |
| 18 | 17 | * @subpackage Request |
@@ -236,7 +235,7 @@ discard block |
||
| 236 | 235 | * @return Payone_Api_Request_Parameter_Authorization_PaymentMethod_RatePay |
| 237 | 236 | */ |
| 238 | 237 | function getRatePay(){ |
| 239 | - return $this->ratePay; |
|
| 238 | + return $this->ratePay; |
|
| 240 | 239 | } |
| 241 | 240 | |
| 242 | 241 | /** |