Code Duplication    Length = 6-6 lines in 2 locations

lib/Service/CirclesService.php 1 location

@@ 129-134 (lines=6) @@
126
		MiscService $miscService
127
	) {
128
129
		if ($userId === null) {
130
			$user = $userSession->getUser();
131
			if ($user !== null) {
132
				$userId = $user->getUID();
133
			}
134
		}
135
136
		$this->userId = $userId;
137
		$this->l10n = $l10n;

lib/Service/SharingFrameService.php 1 location

@@ 112-117 (lines=6) @@
109
		MiscService $miscService
110
	) {
111
112
		if ($userId === null) {
113
			$user = $userSession->getUser();
114
			if ($user !== null) {
115
				$userId = $user->getUID();
116
			}
117
		}
118
119
		$this->userId = $userId;
120
		$this->urlGenerator = $urlGenerator;