Code Duplication    Length = 9-9 lines in 2 locations

src/Database/CDatabaseModel.php 2 locations

@@ 63-71 (lines=9) @@
60
	 *
61
	 * @return array
62
	 */
63
	public function findWhere($column, $value) {
64
		$this->db->select()
65
				 ->from($this->getSource())
66
				 ->where($column . ' = ?');
67
		
68
		$this->db->execute([$value]);
69
		$this->db->setFetchModeClass(__CLASS__);
70
		return $this->db->fetchAll();
71
	}
72
	
73
	/**
74
	 * Find and return rows in specific order.
@@ 81-89 (lines=9) @@
78
	 *
79
	 * @return array
80
	 */
81
	public function findAllOrder($column, $order) {
82
		$this->db->select()
83
				 ->from($this->getSource())
84
				 ->orderBy($column . ' ' . $order);
85
		
86
		$this->db->execute();
87
		$this->db->setFetchModeClass(__CLASS__);
88
		return $this->db->fetchAll();
89
	}
90
	
91
	/**
92
	 * Get object properties.