Code Duplication    Length = 10-10 lines in 2 locations

src/Domain/Repository/AbstractRepository.php 1 location

@@ 61-70 (lines=10) @@
58
 	 * @param string $key 
59
 	 * @return string
60
 	 */
61
 	public function findTableBy($key) {
62
 		$return = '';
63
		foreach ($this->_tableArray() as $k => $table) {
64
			if ($k === $this->_parseTableKey($key) || 
65
				$k.'s' === $this->_parseTableKey($key)) {
66
				$return = $table;
67
			}
68
		}
69
		return $return;
70
	}
71
	/**
72
	 * Helper function to parse table key
73
	 * @param string $key 

src/Persistence/AbstractQuery.php 1 location

@@ 90-99 (lines=10) @@
87
 	 * @param string $key 
88
 	 * @return string
89
 	 */
90
 	public function findTableBy($key) {
91
 		$return = '';
92
		foreach ($this->_tableArray() as $k => $table) {
93
			if ($k === $this->_parseTableKey($key) || 
94
				$k.'s' === $this->_parseTableKey($key)) {
95
				$return = $table;
96
			}
97
		}
98
		return $return;
99
	}
100
	/**
101
	 * Helper function to parse table key
102
	 * @param string $key