Code Duplication    Length = 7-7 lines in 2 locations

lib/Circles/FileSharingBroadcaster.php 1 location

@@ 293-299 (lines=7) @@
290
			}
291
		}
292
293
		if ($circle->getViewer() === null) {
294
			$author = $circle->getOwner()
295
							 ->getUserId();
296
		} else {
297
			$author = $circle->getViewer()
298
							 ->getUserId();
299
		}
300
301
		$recipient = $member->getUserId();
302
		if ($member->getType() === Member::TYPE_CONTACT) {

lib/GlobalScale/MemberAdd.php 1 location

@@ 200-206 (lines=7) @@
197
	 * @param string $password
198
	 */
199
	private function memberIsMailbox(Circle $circle, Member $member, array $links, string $password) {
200
		if ($circle->getViewer() === null) {
201
			$author = $circle->getOwner()
202
							 ->getUserId();
203
		} else {
204
			$author = $circle->getViewer()
205
							 ->getUserId();
206
		}
207
		$recipient = $member->getUserId();
208
209
		try {