Code Duplication    Length = 9-9 lines in 2 locations

code/model/DNProject.php 2 locations

@@ 1167-1175 (lines=9) @@
1164
	 * @param \Gitonomy\Git\Commit $commit
1165
	 * @return string
1166
	 */
1167
	public function getCommitMessage(\Gitonomy\Git\Commit $commit) {
1168
		$cachekey = $this->ID . '_message_' . $commit->getRevision();
1169
		$cache = self::get_git_cache();
1170
		if (!($result = $cache->load($cachekey))) {
1171
			$result = $commit->getMessage();
1172
			$cache->save($result, $cachekey, ['gitonomy', 'message', 'project_' . $this->ID]);
1173
		}
1174
		return $result;
1175
	}
1176
1177
	/**
1178
	 * get the commit "subject", getCommitMessage get the full message
@@ 1183-1191 (lines=9) @@
1180
	 * @param \Gitonomy\Git\Commit $commit
1181
	 * @return string
1182
	 */
1183
	public function getCommitSubjectMessage(\Gitonomy\Git\Commit $commit) {
1184
		$cachekey = $this->ID . '_message_subject' . $commit->getRevision();
1185
		$cache = self::get_git_cache();
1186
		if (!($result = $cache->load($cachekey))) {
1187
			$result = $commit->getSubjectMessage();
1188
			$cache->save($result, $cachekey, ['gitonomy', 'message', 'project_' . $this->ID]);
1189
		}
1190
		return $result;
1191
	}
1192
1193
	/**
1194
	 * @param \Gitonomy\Git\Commit $commit