Code Duplication    Length = 9-11 lines in 2 locations

Sources/Class-Package.php 2 locations

@@ 402-412 (lines=11) @@
399
								'value' => $text_value
400
							);
401
					}
402
					else
403
					{
404
						$text_value = $this->_from_cdata($data);
405
						$data = '';
406
407
						if ($text_value != '')
408
							$current[] = array(
409
								'name' => '!',
410
								'value' => $text_value
411
							);
412
					}
413
				}
414
415
				// Wait for an actual occurance of an element.
@@ 462-470 (lines=9) @@
459
					// Parse the inner data.
460
					if (strpos($inner_match, '<') !== false)
461
						$el += $this->_parse($inner_match);
462
					elseif (trim($inner_match) != '')
463
					{
464
						$text_value = $this->_from_cdata($inner_match);
465
						if ($text_value != '')
466
							$el[] = array(
467
								'name' => '!',
468
								'value' => $text_value
469
							);
470
					}
471
				}
472
			}
473