Code Duplication    Length = 3-5 lines in 2 locations

src/Helper/XMLParser.php 2 locations

@@ 362-366 (lines=5) @@
359
                        // check if we are inside an array or struct:
360
                        // if value just built is inside an array, let's move it into array on the stack
361
                        $vscount = count($this->_xh['valuestack']);
362
                        if ($vscount && $this->_xh['valuestack'][$vscount - 1]['type'] == 'ARRAY') {
363
                            $this->_xh['valuestack'][$vscount - 1]['values'][] = $temp;
364
                        } else {
365
                            $this->_xh['value'] = $temp;
366
                        }
367
                    } else {
368
                        /// @todo this needs to treat correctly php-serialized objects,
369
                        /// since std deserializing is done by php_xmlrpc_decode,
@@ 377-379 (lines=3) @@
374
                        // check if we are inside an array or struct:
375
                        // if value just built is inside an array, let's move it into array on the stack
376
                        $vscount = count($this->_xh['valuestack']);
377
                        if ($vscount && $this->_xh['valuestack'][$vscount - 1]['type'] == 'ARRAY') {
378
                            $this->_xh['valuestack'][$vscount - 1]['values'][] = $this->_xh['value'];
379
                        }
380
                    }
381
                    break;
382
                case 'BOOLEAN':