@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * @var array list of possible operations |
| 46 | 46 | */ |
| 47 | - protected $operations = array('Check','Payment','Confirm','Cancel'); |
|
| 47 | + protected $operations = array('Check', 'Payment', 'Confirm', 'Cancel'); |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * General constructor |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $doc = new \DOMDocument(); |
| 115 | 115 | if ( ! $doc->loadXML($this->raw_request)) |
| 116 | 116 | { |
| 117 | - foreach(libxml_get_errors() as $e){ |
|
| 117 | + foreach (libxml_get_errors() as $e) { |
|
| 118 | 118 | Log::instance()->error($e->message); |
| 119 | 119 | } |
| 120 | 120 | throw new Exception\Structure('The wrong XML is received', -51); |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | */ |
| 227 | 227 | public function verify_sign($options) |
| 228 | 228 | { |
| 229 | - if (!isset($options['UseSign']) || ($options['UseSign'] === false)) |
|
| 229 | + if ( ! isset($options['UseSign']) || ($options['UseSign'] === false)) |
|
| 230 | 230 | { |
| 231 | 231 | return null; |
| 232 | 232 | } |
@@ -280,9 +280,9 @@ discard block |
||
| 280 | 280 | * |
| 281 | 281 | * @return array nodes with the name |
| 282 | 282 | */ |
| 283 | - protected function getNodes($dom, $name, $ret=array()) |
|
| 283 | + protected function getNodes($dom, $name, $ret = array()) |
|
| 284 | 284 | { |
| 285 | - foreach($dom->childNodes as $child) |
|
| 285 | + foreach ($dom->childNodes as $child) |
|
| 286 | 286 | { |
| 287 | 287 | if ($child->nodeName == $name) |
| 288 | 288 | { |