@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * @var array list of possible operations |
| 47 | 47 | */ |
| 48 | - protected $operations = array('Check','Payment','Confirm','Cancel'); |
|
| 48 | + protected $operations = array('Check', 'Payment', 'Confirm', 'Cancel'); |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * General constructor |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $doc = new \DOMDocument(); |
| 116 | 116 | if ( ! $doc->loadXML($this->raw_request)) |
| 117 | 117 | { |
| 118 | - foreach(libxml_get_errors() as $e){ |
|
| 118 | + foreach (libxml_get_errors() as $e) { |
|
| 119 | 119 | Log::instance()->error($e->message); |
| 120 | 120 | } |
| 121 | 121 | 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 | } |
@@ -263,9 +263,9 @@ discard block |
||
| 263 | 263 | * |
| 264 | 264 | * @return array nodes with the name |
| 265 | 265 | */ |
| 266 | - protected function getNodes($dom, $name, $ret=array()) |
|
| 266 | + protected function getNodes($dom, $name, $ret = array()) |
|
| 267 | 267 | { |
| 268 | - foreach($dom->childNodes as $child) |
|
| 268 | + foreach ($dom->childNodes as $child) |
|
| 269 | 269 | { |
| 270 | 270 | if ($child->nodeName == $name) |
| 271 | 271 | { |