Code Duplication    Length = 7-7 lines in 2 locations

apps/dav/lib/Connector/Sabre/FilesReportPlugin.php 1 location

@@ 326-332 (lines=7) @@
323
	/**
324
	 * Returns whether the currently logged in user is an administrator
325
	 */
326
	private function isAdmin() {
327
		$user = $this->userSession->getUser();
328
		if ($user !== null) {
329
			return $this->groupManager->isAdmin($user->getUID());
330
		}
331
		return false;
332
	}
333
}
334

apps/dav/lib/SystemTag/SystemTagsByIdCollection.php 1 location

@@ 75-81 (lines=7) @@
72
	 *
73
	 * @return bool true if the user is an admin
74
	 */
75
	private function isAdmin() {
76
		$user = $this->userSession->getUser();
77
		if ($user !== null) {
78
			return $this->groupManager->isAdmin($user->getUID());
79
		}
80
		return false;
81
	}
82
83
	/**
84
	 * @param string $name