@@ -135,18 +135,15 @@ discard block |
||
| 135 | 135 | if ($child->nodeName == 'DateTime') |
| 136 | 136 | { |
| 137 | 137 | $this->parse_request_node($child, 'DateTime'); |
| 138 | - } |
|
| 139 | - elseif ($child->nodeName == 'Sign') |
|
| 138 | + } elseif ($child->nodeName == 'Sign') |
|
| 140 | 139 | { |
| 141 | 140 | $this->parse_request_node($child, 'Sign'); |
| 142 | - } |
|
| 143 | - elseif (in_array($child->nodeName, $this->operations)) |
|
| 141 | + } elseif (in_array($child->nodeName, $this->operations)) |
|
| 144 | 142 | { |
| 145 | 143 | if ( ! isset($this->Operation)) |
| 146 | 144 | { |
| 147 | 145 | $this->Operation = $child->nodeName; |
| 148 | - } |
|
| 149 | - else |
|
| 146 | + } else |
|
| 150 | 147 | { |
| 151 | 148 | throw new Exception\Structure('There is more than one Operation type element in the xml-query!', -53); |
| 152 | 149 | } |
@@ -183,8 +180,7 @@ discard block |
||
| 183 | 180 | if ( ! isset($this->$name)) |
| 184 | 181 | { |
| 185 | 182 | $this->$name = $n->nodeValue; |
| 186 | - } |
|
| 187 | - else |
|
| 183 | + } else |
|
| 188 | 184 | { |
| 189 | 185 | throw new Exception\Structure('There is more than one '.$name.' element in the xml-query!', -56); |
| 190 | 186 | } |
@@ -270,8 +266,7 @@ discard block |
||
| 270 | 266 | if ($result == -1) |
| 271 | 267 | { |
| 272 | 268 | throw new Exception\Sign('Error verify signature of request!', -96); |
| 273 | - } |
|
| 274 | - elseif ($result == 0) |
|
| 269 | + } elseif ($result == 0) |
|
| 275 | 270 | { |
| 276 | 271 | throw new Exception\Sign('Signature of request is incorrect!', -95); |
| 277 | 272 | } |
@@ -293,8 +288,7 @@ discard block |
||
| 293 | 288 | if ($child->nodeName == $name) |
| 294 | 289 | { |
| 295 | 290 | array_push($ret, $child); |
| 296 | - } |
|
| 297 | - else |
|
| 291 | + } else |
|
| 298 | 292 | { |
| 299 | 293 | if (count($child->childNodes) > 0) |
| 300 | 294 | { |