Code Duplication    Length = 13-13 lines in 4 locations

lib/Gnf/db/base.php 4 locations

@@ 607-619 (lines=13) @@
604
		return $ret;
605
	}
606
607
	public function sqlArray($sql)
608
	{
609
		$sql = $this->parseQuery(func_get_args());
610
		$res = $this->sqlDoWithoutParsing($sql);
611
		if ($res) {
612
			$arr = $this->fetchRow($res);
613
			if ($arr) {
614
				return $arr;
615
			}
616
		}
617
618
		return null;
619
	}
620
621
	public function sqlArrays($sql)
622
	{
@@ 635-647 (lines=13) @@
632
		return $ret;
633
	}
634
635
	public function sqlDict($sql)
636
	{
637
		$sql = $this->parseQuery(func_get_args());
638
		$res = $this->sqlDoWithoutParsing($sql);
639
		if ($res) {
640
			$arr = $this->fetchAssoc($res);
641
			if ($arr !== false) {
642
				return $arr;
643
			}
644
		}
645
646
		return null;
647
	}
648
649
	public function sqlDicts($sql)
650
	{
@@ 663-675 (lines=13) @@
660
		return $ret;
661
	}
662
663
	public function sqlObject($sql)
664
	{
665
		$sql = $this->parseQuery(func_get_args());
666
		$res = $this->sqlDoWithoutParsing($sql);
667
		if ($res) {
668
			$arr = $this->fetchObject($res);
669
			if ($arr !== false) {
670
				return $arr;
671
			}
672
		}
673
674
		return null;
675
	}
676
677
	public function sqlObjects($sql)
678
	{
@@ 691-703 (lines=13) @@
688
		return $ret;
689
	}
690
691
	public function sqlLine($sql)
692
	{
693
		$sql = $this->parseQuery(func_get_args());
694
		$res = $this->sqlDoWithoutParsing($sql);
695
		if ($res) {
696
			$arr = $this->fetchRow($res);
697
			if ($arr !== false) {
698
				return $arr;
699
			}
700
		}
701
702
		return null;
703
	}
704
705
	public function sqlLines($sql)
706
	{