Code Duplication    Length = 9-9 lines in 2 locations

lib/service/aliasesservice.php 2 locations

@@ 94-102 (lines=9) @@
91
	 * @param String $currentUserId
92
	 * @return \OCA\Mail\Db\Alias
93
	 */
94
	public function delete($aliasId, $currentUserId) {
95
		try {
96
			$alias = $this->mapper->find($aliasId, $currentUserId);
97
			$this->mapper->delete($alias);
98
			return $alias;
99
		} catch(Exception $e) {
100
			$this->handleException($e);
101
		}
102
	}
103
104
	/**
105
	 * @param int $aliasId
@@ 110-118 (lines=9) @@
107
	 * @param String $signature
108
	 * @return \OCA\Mail\Db\Alias
109
	 */
110
	public function updateSignature($aliasId, $currentUserId, $signature) {
111
		try {
112
			$alias = $this->mapper->find($aliasId, $currentUserId);
113
			$alias->setSignature($signature);
114
			return $this->mapper->update($alias);
115
		} catch(Exception $e) {
116
			$this->handleException($e);
117
		}
118
	}
119
}
120