Code Duplication    Length = 6-6 lines in 2 locations

lib/Service/CirclesService.php 1 location

@@ 151-156 (lines=6) @@
148
		MiscService $miscService
149
	) {
150
151
		if ($userId === null) {
152
			$user = $userSession->getUser();
153
			if ($user !== null) {
154
				$userId = $user->getUID();
155
			}
156
		}
157
158
		$this->userId = $userId;
159
		$this->l10n = $l10n;

lib/Service/SharingFrameService.php 1 location

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