Code Duplication    Length = 2-2 lines in 2 locations

controller/ownnoteajaxcontroller.php 1 location

@@ 132-133 (lines=2) @@
129
	 */
130
	public function ajaxren($id, $newname, $newgroup) {
131
		$FOLDER = $this->config->getAppValue($this->appName, 'folder', '');
132
		if (isset($id) && isset($newname) && isset($newgroup))
133
			return $this->noteService->renameNote($FOLDER, $id, $newname, $newgroup, $this->uid);
134
	}
135
136
	/**

controller/ownnoteapicontroller.php 1 location

@@ 148-149 (lines=2) @@
145
	*/
146
	public function ren($id, $newname, $newgroup) {
147
		$FOLDER = $this->config->getAppValue($this->appName, 'folder', '');
148
		if (isset($id) && isset($newname) && isset($newgroup))
149
			return $this->noteService->renameNote($FOLDER, $id, $newname, $newgroup);
150
	}
151
152
	/**