@@ -41,7 +41,7 @@ |
||
41 | 41 | * @param string $name |
42 | 42 | * @param string $value (optional) |
43 | 43 | */ |
44 | - public function createElement($name, $value=NULL) |
|
44 | + public function createElement($name, $value = NULL) |
|
45 | 45 | { |
46 | 46 | return parent::createElement($name, $value); |
47 | 47 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | /** |
40 | 40 | * @var array list of possible operations |
41 | 41 | */ |
42 | - protected $operations = array('Check','Payment','Confirm','Cancel'); |
|
42 | + protected $operations = array('Check', 'Payment', 'Confirm', 'Cancel'); |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * General constructor |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | */ |
223 | 223 | public function verify_sign($options) |
224 | 224 | { |
225 | - if (!isset($options['UseSign']) || ($options['UseSign'] === false)) |
|
225 | + if ( ! isset($options['UseSign']) || ($options['UseSign'] === false)) |
|
226 | 226 | { |
227 | 227 | return null; |
228 | 228 | } |
@@ -276,9 +276,9 @@ discard block |
||
276 | 276 | * |
277 | 277 | * @return array nodes with the name |
278 | 278 | */ |
279 | - protected function getNodes($dom, $name, $ret=array()) |
|
279 | + protected function getNodes($dom, $name, $ret = array()) |
|
280 | 280 | { |
281 | - foreach($dom->childNodes as $child) |
|
281 | + foreach ($dom->childNodes as $child) |
|
282 | 282 | { |
283 | 283 | if ($child->nodeName == $name) |
284 | 284 | { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $this->AccountInfo = self::createElement('AccountInfo'); |
43 | 43 | $this->Response->appendChild($this->AccountInfo); |
44 | 44 | |
45 | - foreach($accountinfo as $parameter=>$value) |
|
45 | + foreach ($accountinfo as $parameter=>$value) |
|
46 | 46 | { |
47 | 47 | $this->AccountInfo->appendChild(self::createElement($parameter, $value)); |
48 | 48 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | */ |
72 | 72 | private static function get_http_raw_post_data() |
73 | 73 | { |
74 | - Log::instance()->add('request from ' . $_SERVER['REMOTE_ADDR']); |
|
74 | + Log::instance()->add('request from '.$_SERVER['REMOTE_ADDR']); |
|
75 | 75 | |
76 | 76 | $raw_request = file_get_contents('php://input'); |
77 | 77 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * @param string $message |
21 | 21 | * @param \Throwable $previous |
22 | 22 | */ |
23 | - public function __construct($message, $code=0, \Exception $previous=null) |
|
23 | + public function __construct($message, $code = 0, \Exception $previous = null) |
|
24 | 24 | { |
25 | 25 | parent::__construct($message, $code, $previous, true); |
26 | 26 | } |
@@ -21,9 +21,9 @@ |
||
21 | 21 | * @param string $message |
22 | 22 | * @param \Throwable $previous |
23 | 23 | */ |
24 | - public function __construct($message, $code=0, \Exception $previous=null, $tracelog=false) |
|
24 | + public function __construct($message, $code = 0, \Exception $previous = null, $tracelog = false) |
|
25 | 25 | { |
26 | - Log::instance()->error($message.(($tracelog)?PHP_EOL.$this->getTraceAsString():null)); |
|
26 | + Log::instance()->error($message.(($tracelog) ?PHP_EOL.$this->getTraceAsString() : null)); |
|
27 | 27 | parent::__construct($message, $code, $previous); |
28 | 28 | } |
29 | 29 | } |