Code Duplication    Length = 6-6 lines in 2 locations

lib/Service/CirclesService.php 1 location

@@ 128-133 (lines=6) @@
125
		MiscService $miscService
126
	) {
127
128
		if ($userId === null) {
129
			$user = $userSession->getUser();
130
			if ($user !== null) {
131
				$userId = $user->getUID();
132
			}
133
		}
134
135
		$this->userId = $userId;
136
		$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;