Code Duplication    Length = 10-12 lines in 2 locations

libs/Parser/Document.php 2 locations

@@ 514-523 (lines=10) @@
511
	 *
512
	 * @return \Htsl\Parser\Document
513
	 */
514
	protected function parseHtmlLine( Line$line ):self
515
	{
516
		$node= new StringNode($this,$line);
517
518
		$this->openNode($node);
519
520
		$this->appendLine($line->slice(1));
521
522
		return $this;
523
	}
524
525
	/**
526
	 * Parsing line as string content.
@@ 578-589 (lines=12) @@
575
	 *
576
	 * @return \Htsl\Parser\Document
577
	 */
578
	protected function parseExpressionHtmlLine( Line$line ):self
579
	{
580
		$node= new StringNode($this,$line);
581
582
		$this->openNode($node);
583
584
		$content=  $line->slice(1);
585
586
		$this->appendLine("<?$content?>");
587
588
		return $this;
589
	}
590
591
	/**
592
	 * Parsing line as comment.