Code Duplication    Length = 7-7 lines in 2 locations

lib/Circles/FileSharingBroadcaster.php 1 location

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

lib/GlobalScale/MemberAdd.php 1 location

@@ 228-234 (lines=7) @@
225
	 * @param string $password
226
	 */
227
	private function memberIsMailbox(Circle $circle, string $recipient, array $links, string $password) {
228
		if ($circle->getViewer() === null) {
229
			$author = $circle->getOwner()
230
							 ->getUserId();
231
		} else {
232
			$author = $circle->getViewer()
233
							 ->getUserId();
234
		}
235
236
		try {
237
			$template = $this->generateMailExitingShares($author, $circle->getName());