@@ -134,18 +134,15 @@ discard block |
||
134 | 134 | if ($child->nodeName == 'DateTime') |
135 | 135 | { |
136 | 136 | $this->parse_request_node($child, 'DateTime'); |
137 | - } |
|
138 | - elseif ($child->nodeName == 'Sign') |
|
137 | + } elseif ($child->nodeName == 'Sign') |
|
139 | 138 | { |
140 | 139 | $this->parse_request_node($child, 'Sign'); |
141 | - } |
|
142 | - elseif (in_array($child->nodeName, $this->operations)) |
|
140 | + } elseif (in_array($child->nodeName, $this->operations)) |
|
143 | 141 | { |
144 | 142 | if ( ! isset($this->Operation)) |
145 | 143 | { |
146 | 144 | $this->Operation = $child->nodeName; |
147 | - } |
|
148 | - else |
|
145 | + } else |
|
149 | 146 | { |
150 | 147 | throw new Exception\Structure('There is more than one Operation type element in the xml-query!', -53); |
151 | 148 | } |
@@ -182,8 +179,7 @@ discard block |
||
182 | 179 | if ( ! isset($this->$name)) |
183 | 180 | { |
184 | 181 | $this->$name = $n->nodeValue; |
185 | - } |
|
186 | - else |
|
182 | + } else |
|
187 | 183 | { |
188 | 184 | throw new Exception\Structure('There is more than one '.$name.' element in the xml-query!', -56); |
189 | 185 | } |
@@ -247,8 +243,7 @@ discard block |
||
247 | 243 | if ($check == -1) |
248 | 244 | { |
249 | 245 | throw new Exception\Sign('Error verify signature of request!', -96); |
250 | - } |
|
251 | - elseif ($check == 0) |
|
246 | + } elseif ($check == 0) |
|
252 | 247 | { |
253 | 248 | throw new Exception\Sign('Signature of request is incorrect!', -95); |
254 | 249 | } |
@@ -270,8 +265,7 @@ discard block |
||
270 | 265 | if ($child->nodeName == $name) |
271 | 266 | { |
272 | 267 | array_push($ret, $child); |
273 | - } |
|
274 | - else |
|
268 | + } else |
|
275 | 269 | { |
276 | 270 | if (count($child->childNodes) > 0) |
277 | 271 | { |