@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | $appenders = array(); |
| 100 | 100 | |
| 101 | - foreach($properties as $key => $value) { |
|
| 101 | + foreach ($properties as $key => $value) { |
|
| 102 | 102 | // Parse loggers |
| 103 | 103 | if ($this->beginsWith($key, self::LOGGER_PREFIX)) { |
| 104 | 104 | $name = substr($key, strlen(self::LOGGER_PREFIX)); |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | // The remaining values are appender references |
| 151 | 151 | $appenders = array(); |
| 152 | - while($appender = array_shift($parts)) { |
|
| 152 | + while ($appender = array_shift($parts)) { |
|
| 153 | 153 | $appender = trim($appender); |
| 154 | 154 | if (!empty($appender)) { |
| 155 | 155 | $appenders[] = trim($appender); |
@@ -77,8 +77,8 @@ discard block |
||
| 77 | 77 | * @return boolean |
| 78 | 78 | */ |
| 79 | 79 | public function equals($other) { |
| 80 | - if($other instanceof Payone_Log4php_LoggerLevel) { |
|
| 81 | - if($this->level == $other->level) { |
|
| 80 | + if ($other instanceof Payone_Log4php_LoggerLevel) { |
|
| 81 | + if ($this->level == $other->level) { |
|
| 82 | 82 | return true; |
| 83 | 83 | } |
| 84 | 84 | } else { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * @return Payone_Log4php_LoggerLevel |
| 92 | 92 | */ |
| 93 | 93 | public static function getLevelOff() { |
| 94 | - if(!isset(self::$levelMap[Payone_Log4php_LoggerLevel::OFF])) { |
|
| 94 | + if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::OFF])) { |
|
| 95 | 95 | self::$levelMap[Payone_Log4php_LoggerLevel::OFF] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::OFF, 'OFF', LOG_ALERT); |
| 96 | 96 | } |
| 97 | 97 | return self::$levelMap[Payone_Log4php_LoggerLevel::OFF]; |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | * @return Payone_Log4php_LoggerLevel |
| 103 | 103 | */ |
| 104 | 104 | public static function getLevelFatal() { |
| 105 | - if(!isset(self::$levelMap[Payone_Log4php_LoggerLevel::FATAL])) { |
|
| 105 | + if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::FATAL])) { |
|
| 106 | 106 | self::$levelMap[Payone_Log4php_LoggerLevel::FATAL] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::FATAL, 'FATAL', LOG_ALERT); |
| 107 | 107 | } |
| 108 | 108 | return self::$levelMap[Payone_Log4php_LoggerLevel::FATAL]; |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * @return Payone_Log4php_LoggerLevel |
| 114 | 114 | */ |
| 115 | 115 | public static function getLevelError() { |
| 116 | - if(!isset(self::$levelMap[Payone_Log4php_LoggerLevel::ERROR])) { |
|
| 116 | + if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::ERROR])) { |
|
| 117 | 117 | self::$levelMap[Payone_Log4php_LoggerLevel::ERROR] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::ERROR, 'ERROR', LOG_ERR); |
| 118 | 118 | } |
| 119 | 119 | return self::$levelMap[Payone_Log4php_LoggerLevel::ERROR]; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * @return Payone_Log4php_LoggerLevel |
| 125 | 125 | */ |
| 126 | 126 | public static function getLevelWarn() { |
| 127 | - if(!isset(self::$levelMap[Payone_Log4php_LoggerLevel::WARN])) { |
|
| 127 | + if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::WARN])) { |
|
| 128 | 128 | self::$levelMap[Payone_Log4php_LoggerLevel::WARN] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::WARN, 'WARN', LOG_WARNING); |
| 129 | 129 | } |
| 130 | 130 | return self::$levelMap[Payone_Log4php_LoggerLevel::WARN]; |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * @return Payone_Log4php_LoggerLevel |
| 136 | 136 | */ |
| 137 | 137 | public static function getLevelInfo() { |
| 138 | - if(!isset(self::$levelMap[Payone_Log4php_LoggerLevel::INFO])) { |
|
| 138 | + if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::INFO])) { |
|
| 139 | 139 | self::$levelMap[Payone_Log4php_LoggerLevel::INFO] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::INFO, 'INFO', LOG_INFO); |
| 140 | 140 | } |
| 141 | 141 | return self::$levelMap[Payone_Log4php_LoggerLevel::INFO]; |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | * @return Payone_Log4php_LoggerLevel |
| 147 | 147 | */ |
| 148 | 148 | public static function getLevelDebug() { |
| 149 | - if(!isset(self::$levelMap[Payone_Log4php_LoggerLevel::DEBUG])) { |
|
| 149 | + if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::DEBUG])) { |
|
| 150 | 150 | self::$levelMap[Payone_Log4php_LoggerLevel::DEBUG] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::DEBUG, 'DEBUG', LOG_DEBUG); |
| 151 | 151 | } |
| 152 | 152 | return self::$levelMap[Payone_Log4php_LoggerLevel::DEBUG]; |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * @return Payone_Log4php_LoggerLevel |
| 158 | 158 | */ |
| 159 | 159 | public static function getLevelTrace() { |
| 160 | - if(!isset(self::$levelMap[Payone_Log4php_LoggerLevel::TRACE])) { |
|
| 160 | + if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::TRACE])) { |
|
| 161 | 161 | self::$levelMap[Payone_Log4php_LoggerLevel::TRACE] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::TRACE, 'TRACE', LOG_DEBUG); |
| 162 | 162 | } |
| 163 | 163 | return self::$levelMap[Payone_Log4php_LoggerLevel::TRACE]; |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | * @return Payone_Log4php_LoggerLevel |
| 169 | 169 | */ |
| 170 | 170 | public static function getLevelAll() { |
| 171 | - if(!isset(self::$levelMap[Payone_Log4php_LoggerLevel::ALL])) { |
|
| 171 | + if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::ALL])) { |
|
| 172 | 172 | self::$levelMap[Payone_Log4php_LoggerLevel::ALL] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::ALL, 'ALL', LOG_DEBUG); |
| 173 | 173 | } |
| 174 | 174 | return self::$levelMap[Payone_Log4php_LoggerLevel::ALL]; |
@@ -227,8 +227,8 @@ discard block |
||
| 227 | 227 | * @return Payone_Log4php_LoggerLevel |
| 228 | 228 | */ |
| 229 | 229 | public static function toLevel($arg, $defaultLevel = null) { |
| 230 | - if(is_int($arg)) { |
|
| 231 | - switch($arg) { |
|
| 230 | + if (is_int($arg)) { |
|
| 231 | + switch ($arg) { |
|
| 232 | 232 | case self::ALL: return self::getLevelAll(); |
| 233 | 233 | case self::TRACE: return self::getLevelTrace(); |
| 234 | 234 | case self::DEBUG: return self::getLevelDebug(); |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | default: return $defaultLevel; |
| 241 | 241 | } |
| 242 | 242 | } else { |
| 243 | - switch(strtoupper($arg)) { |
|
| 243 | + switch (strtoupper($arg)) { |
|
| 244 | 244 | case 'ALL': return self::getLevelAll(); |
| 245 | 245 | case 'TRACE': return self::getLevelTrace(); |
| 246 | 246 | case 'DEBUG': return self::getLevelDebug(); |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | */ |
| 128 | 128 | public function __construct($fqcn, $logger, $priority, $message, $timeStamp = null, Exception $throwable = null) { |
| 129 | 129 | $this->fqcn = $fqcn; |
| 130 | - if($logger instanceof Payone_Log4php_Logger) { |
|
| 130 | + if ($logger instanceof Payone_Log4php_Logger) { |
|
| 131 | 131 | $this->logger = $logger; |
| 132 | 132 | $this->categoryName = $logger->getName(); |
| 133 | 133 | } else { |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | $this->level = $priority; |
| 137 | 137 | $this->message = $message; |
| 138 | - if($timeStamp !== null && is_float($timeStamp)) { |
|
| 138 | + if ($timeStamp !== null && is_float($timeStamp)) { |
|
| 139 | 139 | $this->timeStamp = $timeStamp; |
| 140 | 140 | } else { |
| 141 | 141 | $this->timeStamp = microtime(true); |
@@ -164,18 +164,18 @@ discard block |
||
| 164 | 164 | * @return Payone_Log4php_LoggerLocationInfo |
| 165 | 165 | */ |
| 166 | 166 | public function getLocationInformation() { |
| 167 | - if($this->locationInfo === null) { |
|
| 167 | + if ($this->locationInfo === null) { |
|
| 168 | 168 | |
| 169 | 169 | $locationInfo = array(); |
| 170 | 170 | $trace = debug_backtrace(); |
| 171 | 171 | $prevHop = null; |
| 172 | 172 | // make a downsearch to identify the caller |
| 173 | 173 | $hop = array_pop($trace); |
| 174 | - while($hop !== null) { |
|
| 175 | - if(isset($hop['class'])) { |
|
| 174 | + while ($hop !== null) { |
|
| 175 | + if (isset($hop['class'])) { |
|
| 176 | 176 | // we are sometimes in functions = no class available: avoid php warning here |
| 177 | 177 | $className = strtolower($hop['class']); |
| 178 | - if(!empty($className) and ($className == 'logger' or |
|
| 178 | + if (!empty($className) and ($className == 'logger' or |
|
| 179 | 179 | strtolower(get_parent_class($className)) == 'logger')) { |
| 180 | 180 | $locationInfo['line'] = $hop['line']; |
| 181 | 181 | $locationInfo['file'] = $hop['file']; |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | $hop = array_pop($trace); |
| 187 | 187 | } |
| 188 | 188 | $locationInfo['class'] = isset($prevHop['class']) ? $prevHop['class'] : 'main'; |
| 189 | - if(isset($prevHop['function']) and |
|
| 189 | + if (isset($prevHop['function']) and |
|
| 190 | 190 | $prevHop['function'] !== 'include' and |
| 191 | 191 | $prevHop['function'] !== 'include_once' and |
| 192 | 192 | $prevHop['function'] !== 'require' and |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | * @return mixed |
| 239 | 239 | */ |
| 240 | 240 | public function getMessage() { |
| 241 | - if($this->message !== null) { |
|
| 241 | + if ($this->message !== null) { |
|
| 242 | 242 | return $this->message; |
| 243 | 243 | } else { |
| 244 | 244 | return $this->getRenderedMessage(); |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | * @return string |
| 254 | 254 | */ |
| 255 | 255 | public function getNDC() { |
| 256 | - if($this->ndcLookupRequired) { |
|
| 256 | + if ($this->ndcLookupRequired) { |
|
| 257 | 257 | $this->ndcLookupRequired = false; |
| 258 | 258 | $this->ndc = Payone_Log4php_LoggerNDC::get(); |
| 259 | 259 | } |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | * Returns the entire MDC context. |
| 274 | 274 | * @return array |
| 275 | 275 | */ |
| 276 | - public function getMDCMap () { |
|
| 276 | + public function getMDCMap() { |
|
| 277 | 277 | return Payone_Log4php_LoggerMDC::getMap(); |
| 278 | 278 | } |
| 279 | 279 | |
@@ -282,12 +282,12 @@ discard block |
||
| 282 | 282 | * @return string |
| 283 | 283 | */ |
| 284 | 284 | public function getRenderedMessage() { |
| 285 | - if($this->renderedMessage === null and $this->message !== null) { |
|
| 286 | - if(is_string($this->message)) { |
|
| 285 | + if ($this->renderedMessage === null and $this->message !== null) { |
|
| 286 | + if (is_string($this->message)) { |
|
| 287 | 287 | $this->renderedMessage = $this->message; |
| 288 | 288 | } else { |
| 289 | 289 | $rendererMap = Payone_Log4php_Logger::getHierarchy()->getRendererMap(); |
| 290 | - $this->renderedMessage= $rendererMap->findAndRender($this->message); |
|
| 290 | + $this->renderedMessage = $rendererMap->findAndRender($this->message); |
|
| 291 | 291 | } |
| 292 | 292 | } |
| 293 | 293 | return $this->renderedMessage; |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | * @return float |
| 300 | 300 | */ |
| 301 | 301 | public static function getStartTime() { |
| 302 | - if(!isset(self::$startTime)) { |
|
| 302 | + if (!isset(self::$startTime)) { |
|
| 303 | 303 | self::$startTime = microtime(true); |
| 304 | 304 | } |
| 305 | 305 | return self::$startTime; |
@@ -91,26 +91,26 @@ discard block |
||
| 91 | 91 | public function __construct(array $data = array()) |
| 92 | 92 | { |
| 93 | 93 | if (empty($data)) { |
| 94 | - if($this->getApiConfig() === null) |
|
| 94 | + if ($this->getApiConfig() === null) |
|
| 95 | 95 | { |
| 96 | 96 | $this->apiConfig = new Payone_Api_Config(); |
| 97 | 97 | } |
| 98 | - if($this->getTransactionStatusConfig() === null) |
|
| 98 | + if ($this->getTransactionStatusConfig() === null) |
|
| 99 | 99 | { |
| 100 | 100 | $this->transactionStatusConfig = new Payone_TransactionStatus_Config(); |
| 101 | 101 | } |
| 102 | - if($this->getSessionStatusConfig() === null) |
|
| 102 | + if ($this->getSessionStatusConfig() === null) |
|
| 103 | 103 | { |
| 104 | 104 | $this->sessionStatusConfig = new Payone_SessionStatus_Config(); |
| 105 | 105 | } |
| 106 | 106 | $this->config = $this->getDefaultConfigData(); |
| 107 | 107 | } |
| 108 | 108 | else { |
| 109 | - if(array_key_exists('api', $data)) |
|
| 109 | + if (array_key_exists('api', $data)) |
|
| 110 | 110 | $this->setApiConfig($data['api']); |
| 111 | - if(array_key_exists('transaction_status',$data)) |
|
| 111 | + if (array_key_exists('transaction_status', $data)) |
|
| 112 | 112 | $this->setTransactionStatusConfig($data['transaction_status']); |
| 113 | - if(array_key_exists('session_status',$data)) |
|
| 113 | + if (array_key_exists('session_status', $data)) |
|
| 114 | 114 | $this->setSessionStatusConfig($data['session_status']); |
| 115 | 115 | $this->config = $data; |
| 116 | 116 | } |
@@ -164,11 +164,11 @@ discard block |
||
| 164 | 164 | // Disassemble key, extracting the first node of the string: |
| 165 | 165 | $explodedKey = explode(self::KEY_SEPARATOR, $key); |
| 166 | 166 | $currentKey = array_shift($explodedKey); |
| 167 | - $newKey = implode(self::KEY_SEPARATOR,$explodedKey); |
|
| 167 | + $newKey = implode(self::KEY_SEPARATOR, $explodedKey); |
|
| 168 | 168 | |
| 169 | 169 | /** @var $object Payone_Config_Abstract */ |
| 170 | 170 | $object = $tree[$currentKey]; |
| 171 | - $object->setValue($newKey,$value); |
|
| 171 | + $object->setValue($newKey, $value); |
|
| 172 | 172 | return TRUE; |
| 173 | 173 | } |
| 174 | 174 | else { |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | // Disassemble key, extracting the first node of the string: |
| 201 | 201 | $explodedKey = explode(self::KEY_SEPARATOR, $key); |
| 202 | 202 | $currentKey = array_shift($explodedKey); |
| 203 | - $newKey = implode(self::KEY_SEPARATOR,$explodedKey); |
|
| 203 | + $newKey = implode(self::KEY_SEPARATOR, $explodedKey); |
|
| 204 | 204 | |
| 205 | 205 | /** @var $object Payone_Config_Abstract */ |
| 206 | 206 | $object = $tree[$currentKey]; |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | { |
| 105 | 105 | $remoteAddr = $_SERVER['REMOTE_ADDR']; |
| 106 | 106 | if ($this->getProxyCheckEnabled() == 1) { |
| 107 | - if(array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) { |
|
| 107 | + if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) { |
|
| 108 | 108 | $proxy = $_SERVER['HTTP_X_FORWARDED_FOR']; |
| 109 | 109 | if (!empty($proxy)) { |
| 110 | 110 | $proxyIps = explode(',', $proxy); |
@@ -626,7 +626,7 @@ discard block |
||
| 626 | 626 | /** |
| 627 | 627 | * @param string $clearing_bankaccount |
| 628 | 628 | */ |
| 629 | - public function setClearingBankaccount( $clearing_bankaccount) |
|
| 629 | + public function setClearingBankaccount($clearing_bankaccount) |
|
| 630 | 630 | { |
| 631 | 631 | $this->clearing_bankaccount = $clearing_bankaccount; |
| 632 | 632 | } |
@@ -642,7 +642,7 @@ discard block |
||
| 642 | 642 | /** |
| 643 | 643 | * @param string $clearing_bankaccountholder |
| 644 | 644 | */ |
| 645 | - public function setClearingBankaccountholder( $clearing_bankaccountholder) |
|
| 645 | + public function setClearingBankaccountholder($clearing_bankaccountholder) |
|
| 646 | 646 | { |
| 647 | 647 | $this->clearing_bankaccountholder = $clearing_bankaccountholder; |
| 648 | 648 | } |
@@ -658,7 +658,7 @@ discard block |
||
| 658 | 658 | /** |
| 659 | 659 | * @param string $clearing_bankbic |
| 660 | 660 | */ |
| 661 | - public function setClearingBankbic( $clearing_bankbic) |
|
| 661 | + public function setClearingBankbic($clearing_bankbic) |
|
| 662 | 662 | { |
| 663 | 663 | $this->clearing_bankbic = $clearing_bankbic; |
| 664 | 664 | } |
@@ -674,7 +674,7 @@ discard block |
||
| 674 | 674 | /** |
| 675 | 675 | * @param string $clearing_bankcity |
| 676 | 676 | */ |
| 677 | - public function setClearingBankcity( $clearing_bankcity) |
|
| 677 | + public function setClearingBankcity($clearing_bankcity) |
|
| 678 | 678 | { |
| 679 | 679 | $this->clearing_bankcity = $clearing_bankcity; |
| 680 | 680 | } |
@@ -690,7 +690,7 @@ discard block |
||
| 690 | 690 | /** |
| 691 | 691 | * @param string $clearing_bankcode |
| 692 | 692 | */ |
| 693 | - public function setClearingBankcode( $clearing_bankcode) |
|
| 693 | + public function setClearingBankcode($clearing_bankcode) |
|
| 694 | 694 | { |
| 695 | 695 | $this->clearing_bankcode = $clearing_bankcode; |
| 696 | 696 | } |
@@ -706,7 +706,7 @@ discard block |
||
| 706 | 706 | /** |
| 707 | 707 | * @param string $clearing_bankcountry |
| 708 | 708 | */ |
| 709 | - public function setClearingBankcountry( $clearing_bankcountry) |
|
| 709 | + public function setClearingBankcountry($clearing_bankcountry) |
|
| 710 | 710 | { |
| 711 | 711 | $this->clearing_bankcountry = $clearing_bankcountry; |
| 712 | 712 | } |
@@ -722,7 +722,7 @@ discard block |
||
| 722 | 722 | /** |
| 723 | 723 | * @param string $clearing_bankiban |
| 724 | 724 | */ |
| 725 | - public function setClearingBankiban( $clearing_bankiban) |
|
| 725 | + public function setClearingBankiban($clearing_bankiban) |
|
| 726 | 726 | { |
| 727 | 727 | $this->clearing_bankiban = $clearing_bankiban; |
| 728 | 728 | } |
@@ -738,7 +738,7 @@ discard block |
||
| 738 | 738 | /** |
| 739 | 739 | * @param string $clearing_bankname |
| 740 | 740 | */ |
| 741 | - public function setClearingBankname( $clearing_bankname) |
|
| 741 | + public function setClearingBankname($clearing_bankname) |
|
| 742 | 742 | { |
| 743 | 743 | $this->clearing_bankname = $clearing_bankname; |
| 744 | 744 | } |
@@ -754,7 +754,7 @@ discard block |
||
| 754 | 754 | /** |
| 755 | 755 | * @param string $clearing_duedate |
| 756 | 756 | */ |
| 757 | - public function setClearingDuedate( $clearing_duedate) |
|
| 757 | + public function setClearingDuedate($clearing_duedate) |
|
| 758 | 758 | { |
| 759 | 759 | $this->clearing_duedate = $clearing_duedate; |
| 760 | 760 | } |
@@ -770,7 +770,7 @@ discard block |
||
| 770 | 770 | /** |
| 771 | 771 | * @param string $clearing_instructionnote |
| 772 | 772 | */ |
| 773 | - public function setClearingInstructionnote( $clearing_instructionnote) |
|
| 773 | + public function setClearingInstructionnote($clearing_instructionnote) |
|
| 774 | 774 | { |
| 775 | 775 | $this->clearing_instructionnote = $clearing_instructionnote; |
| 776 | 776 | } |
@@ -786,7 +786,7 @@ discard block |
||
| 786 | 786 | /** |
| 787 | 787 | * @param string $clearing_legalnote |
| 788 | 788 | */ |
| 789 | - public function setClearingLegalnote( $clearing_legalnote) |
|
| 789 | + public function setClearingLegalnote($clearing_legalnote) |
|
| 790 | 790 | { |
| 791 | 791 | $this->clearing_legalnote = $clearing_legalnote; |
| 792 | 792 | } |
@@ -802,7 +802,7 @@ discard block |
||
| 802 | 802 | /** |
| 803 | 803 | * @param string $clearing_reference |
| 804 | 804 | */ |
| 805 | - public function setClearingReference( $clearing_reference) |
|
| 805 | + public function setClearingReference($clearing_reference) |
|
| 806 | 806 | { |
| 807 | 807 | $this->clearing_reference = $clearing_reference; |
| 808 | 808 | } |
@@ -42,6 +42,6 @@ |
||
| 42 | 42 | const REMINDER = 'reminder'; |
| 43 | 43 | const VAUTHORIZATION = 'vauthorization'; |
| 44 | 44 | const VSETTLEMENT = 'vsettlement'; |
| 45 | - const TRANSFER= 'transfer'; |
|
| 46 | - const INVOICE= 'invoice'; |
|
| 45 | + const TRANSFER = 'transfer'; |
|
| 46 | + const INVOICE = 'invoice'; |
|
| 47 | 47 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | // |
| 98 | 98 | $response = new Payone_TransactionStatus_Response('TSOK'); |
| 99 | 99 | |
| 100 | - if($request->getClearingtype() == 'cc') { |
|
| 100 | + if ($request->getClearingtype() == 'cc') { |
|
| 101 | 101 | $this->_handleTransactionId($request); |
| 102 | 102 | } |
| 103 | 103 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $oFactory = new Payone_Core_Model_Factory(); |
| 117 | 117 | $oTransaction = $oFactory->getModelTransaction(); |
| 118 | 118 | $oTransaction->load($oRequest->getReference(), 'reference'); |
| 119 | - if($oTransaction->getFrontendApiCall() == 1 && !$oTransaction->getTxid()) { |
|
| 119 | + if ($oTransaction->getFrontendApiCall() == 1 && !$oTransaction->getTxid()) { |
|
| 120 | 120 | $oTransaction->setTxid($oRequest->getTxid()); |
| 121 | 121 | $oTransaction->save(); |
| 122 | 122 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | public function map(Payone_Api_Request_Interface $request) |
| 31 | 31 | { |
| 32 | 32 | /** @var $request Payone_Api_Request_Authorization */ |
| 33 | - if($request->getAmount()) { |
|
| 33 | + if ($request->getAmount()) { |
|
| 34 | 34 | $this->mapAmount($request); |
| 35 | 35 | } |
| 36 | 36 | |