Code Duplication    Length = 7-7 lines in 2 locations

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

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

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

@@ 369-375 (lines=7) @@
366
	/**
367
	 * Returns whether the currently logged in user is an administrator
368
	 */
369
	private function isAdmin() {
370
		$user = $this->userSession->getUser();
371
		if ($user !== null) {
372
			return $this->groupManager->isAdmin($user->getUID());
373
		}
374
		return false;
375
	}
376
}
377