Code Duplication    Length = 14-15 lines in 2 locations

Contrib/less.php/Less.php 2 locations

@@ 4598-4611 (lines=14) @@
4595
		return new Less_Tree_Anonymous($this->value, $this->index, $this->currentFileInfo, $this->mapLines);
4596
	}
4597
4598
    public function compare($x){
4599
		if( !is_object($x) ){
4600
			return -1;
4601
		}
4602
4603
		$left = $this->toCSS();
4604
		$right = $x->toCSS();
4605
4606
		if( $left === $right ){
4607
			return 0;
4608
		}
4609
4610
		return $left < $right ? -1 : 1;
4611
	}
4612
4613
    /**
4614
     * @see Less_Tree::genCSS
@@ 6620-6634 (lines=15) @@
6617
		return new Less_Tree_Quoted($this->quote . $value . $this->quote, $value, $this->escaped, $this->index, $this->currentFileInfo);
6618
	}
6619
6620
    public function compare($x) {
6621
6622
		if( !Less_Parser::is_method($x, 'toCSS') ){
6623
			return -1;
6624
		}
6625
6626
		$left = $this->toCSS();
6627
		$right = $x->toCSS();
6628
6629
		if ($left === $right) {
6630
			return 0;
6631
		}
6632
6633
		return $left < $right ? -1 : 1;
6634
	}
6635
}
6636
 
6637