@@ -68,6 +68,6 @@ |
||
| 68 | 68 | |
| 69 | 69 | public function addShop($shop) |
| 70 | 70 | { |
| 71 | - return $this->shop[]=$shop; |
|
| 71 | + return $this->shop[] = $shop; |
|
| 72 | 72 | } |
| 73 | 73 | } |
@@ -50,21 +50,18 @@ |
||
| 50 | 50 | if ($data instanceof Payone_Settings_Data_ConfigFile_Interface) { |
| 51 | 51 | /** @var Payone_Api_Request_Parameter_Interface $data */ |
| 52 | 52 | $array[$key] = $data->toArray(); |
| 53 | - } |
|
| 54 | - elseif (is_array($data)) |
|
| 53 | + } elseif (is_array($data)) |
|
| 55 | 54 | { |
| 56 | 55 | foreach ($data as $innerKey => $innerValue) |
| 57 | 56 | { |
| 58 | 57 | if ($innerValue instanceof Payone_Settings_Data_ConfigFile_Interface) { |
| 59 | 58 | /** @var Payone_Api_Request_Parameter_Interface $innerValue */ |
| 60 | 59 | $array[$key][$innerValue->getKey()] = $innerValue->toArray(); |
| 61 | - } |
|
| 62 | - else { |
|
| 60 | + } else { |
|
| 63 | 61 | $array[$key][$innerKey] = $innerValue; |
| 64 | 62 | } |
| 65 | 63 | } |
| 66 | - } |
|
| 67 | - else { |
|
| 64 | + } else { |
|
| 68 | 65 | $array[$key] = $data; |
| 69 | 66 | } |
| 70 | 67 | } |
@@ -41,11 +41,11 @@ discard block |
||
| 41 | 41 | protected $title = ''; |
| 42 | 42 | |
| 43 | 43 | protected $mid = null; |
| 44 | - protected $aid =null; |
|
| 44 | + protected $aid = null; |
|
| 45 | 45 | protected $portalid = null; |
| 46 | 46 | protected $fee_config = array(); |
| 47 | 47 | protected $min_order_total = null; |
| 48 | - protected $max_order_total =null; |
|
| 48 | + protected $max_order_total = null; |
|
| 49 | 49 | /** @var string */ |
| 50 | 50 | protected $types = null; |
| 51 | 51 | /** @var string */ |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | public function addFeeConfig($value) |
| 115 | 115 | { |
| 116 | - return $this->fee_config[]=$value; |
|
| 116 | + return $this->fee_config[] = $value; |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | public function setMaxOrderTotal($max_order_total) |
@@ -143,8 +143,8 @@ |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | - * @return string |
|
| 147 | - */ |
|
| 146 | + * @return string |
|
| 147 | + */ |
|
| 148 | 148 | public function getKey() |
| 149 | 149 | { |
| 150 | 150 | return $this->key; |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | /** |
| 57 | 57 | * @param string $active |
| 58 | 58 | */ |
| 59 | - public function setActive( $active) |
|
| 59 | + public function setActive($active) |
|
| 60 | 60 | { |
| 61 | 61 | $this->active = $active; |
| 62 | 62 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * @param string $authorization |
| 74 | 74 | */ |
| 75 | - public function setAuthorization( $authorization) |
|
| 75 | + public function setAuthorization($authorization) |
|
| 76 | 76 | { |
| 77 | 77 | $this->authorization = $authorization; |
| 78 | 78 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * @param string $countries |
| 90 | 90 | */ |
| 91 | - public function setCountries( $countries) |
|
| 91 | + public function setCountries($countries) |
|
| 92 | 92 | { |
| 93 | 93 | $this->countries = $countries; |
| 94 | 94 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | /** |
| 106 | 106 | * @param string $mode |
| 107 | 107 | */ |
| 108 | - public function setMode( $mode) |
|
| 108 | + public function setMode($mode) |
|
| 109 | 109 | { |
| 110 | 110 | $this->mode = $mode; |
| 111 | 111 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | /** |
| 122 | 122 | * @param string $newOrderStatus |
| 123 | 123 | */ |
| 124 | - public function setNewOrderStatus( $newOrderStatus) |
|
| 124 | + public function setNewOrderStatus($newOrderStatus) |
|
| 125 | 125 | { |
| 126 | 126 | $this->newOrderStatus = $newOrderStatus; |
| 127 | 127 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | /** |
| 51 | 51 | * @param $value |
| 52 | 52 | */ |
| 53 | - public function addTransactionstatusForwarding($value){ |
|
| 53 | + public function addTransactionstatusForwarding($value) { |
|
| 54 | 54 | $this->transactionstatus_forwarding[] = $value; |
| 55 | 55 | } |
| 56 | 56 | |
@@ -187,8 +187,7 @@ |
||
| 187 | 187 | |
| 188 | 188 | return $object->get($propertyName); |
| 189 | 189 | } |
| 190 | - } |
|
| 191 | - elseif (property_exists($this, $name)) { |
|
| 190 | + } elseif (property_exists($this, $name)) { |
|
| 192 | 191 | return $this->$name; |
| 193 | 192 | } |
| 194 | 193 | return null; |
@@ -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); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | public function setFilters(array $filters) |
| 121 | 121 | { |
| 122 | 122 | $this->filters = array(); |
| 123 | - foreach($filters as $key => /** @var $value Payone_Protocol_Filter_Interface */ $value) |
|
| 123 | + foreach ($filters as $key => /** @var $value Payone_Protocol_Filter_Interface */ $value) |
|
| 124 | 124 | { |
| 125 | 125 | $this->addFilter($value); |
| 126 | 126 | } |
@@ -153,8 +153,8 @@ discard block |
||
| 153 | 153 | */ |
| 154 | 154 | public function getFilterConfig($key) |
| 155 | 155 | { |
| 156 | - foreach($this->filters_config as $filter => $config) { |
|
| 157 | - if(in_array($key, $config)) { |
|
| 156 | + foreach ($this->filters_config as $filter => $config) { |
|
| 157 | + if (in_array($key, $config)) { |
|
| 158 | 158 | return $this->getFilter($filter); |
| 159 | 159 | } |
| 160 | 160 | } |
@@ -41,16 +41,16 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | class Payone_Log4php_LoggerAppenderPhp extends Payone_Log4php_LoggerAppender { |
| 43 | 43 | |
| 44 | - public function append(Payone_Log4php_LoggerLoggingEvent $event) { |
|
| 45 | - if($this->layout !== null) { |
|
| 46 | - $level = $event->getLevel(); |
|
| 47 | - if($level->isGreaterOrEqual(Payone_Log4php_LoggerLevel::getLevelError())) { |
|
| 48 | - trigger_error($this->layout->format($event), E_USER_ERROR); |
|
| 49 | - } else if ($level->isGreaterOrEqual(Payone_Log4php_LoggerLevel::getLevelWarn())) { |
|
| 50 | - trigger_error($this->layout->format($event), E_USER_WARNING); |
|
| 51 | - } else { |
|
| 52 | - trigger_error($this->layout->format($event), E_USER_NOTICE); |
|
| 53 | - } |
|
| 54 | - } |
|
| 55 | - } |
|
| 44 | + public function append(Payone_Log4php_LoggerLoggingEvent $event) { |
|
| 45 | + if($this->layout !== null) { |
|
| 46 | + $level = $event->getLevel(); |
|
| 47 | + if($level->isGreaterOrEqual(Payone_Log4php_LoggerLevel::getLevelError())) { |
|
| 48 | + trigger_error($this->layout->format($event), E_USER_ERROR); |
|
| 49 | + } else if ($level->isGreaterOrEqual(Payone_Log4php_LoggerLevel::getLevelWarn())) { |
|
| 50 | + trigger_error($this->layout->format($event), E_USER_WARNING); |
|
| 51 | + } else { |
|
| 52 | + trigger_error($this->layout->format($event), E_USER_NOTICE); |
|
| 53 | + } |
|
| 54 | + } |
|
| 55 | + } |
|
| 56 | 56 | } |
@@ -42,9 +42,9 @@ |
||
| 42 | 42 | class Payone_Log4php_LoggerAppenderPhp extends Payone_Log4php_LoggerAppender { |
| 43 | 43 | |
| 44 | 44 | public function append(Payone_Log4php_LoggerLoggingEvent $event) { |
| 45 | - if($this->layout !== null) { |
|
| 45 | + if ($this->layout !== null) { |
|
| 46 | 46 | $level = $event->getLevel(); |
| 47 | - if($level->isGreaterOrEqual(Payone_Log4php_LoggerLevel::getLevelError())) { |
|
| 47 | + if ($level->isGreaterOrEqual(Payone_Log4php_LoggerLevel::getLevelError())) { |
|
| 48 | 48 | trigger_error($this->layout->format($event), E_USER_ERROR); |
| 49 | 49 | } else if ($level->isGreaterOrEqual(Payone_Log4php_LoggerLevel::getLevelWarn())) { |
| 50 | 50 | trigger_error($this->layout->format($event), E_USER_WARNING); |
@@ -39,13 +39,13 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | class Payone_Log4php_LoggerRendererDefault implements Payone_Log4php_LoggerRendererObject { |
| 41 | 41 | |
| 42 | - /** |
|
| 43 | - * Render objects by type casting |
|
| 44 | - * |
|
| 45 | - * @param mixed $o the object to render |
|
| 46 | - * @return string |
|
| 47 | - */ |
|
| 48 | - public function render($o) { |
|
| 49 | - return var_export($o, true); |
|
| 50 | - } |
|
| 42 | + /** |
|
| 43 | + * Render objects by type casting |
|
| 44 | + * |
|
| 45 | + * @param mixed $o the object to render |
|
| 46 | + * @return string |
|
| 47 | + */ |
|
| 48 | + public function render($o) { |
|
| 49 | + return var_export($o, true); |
|
| 50 | + } |
|
| 51 | 51 | } |