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

@@ 165-171 (lines=7) @@
162
			);
163
		}
164
165
		if ($circle->getViewer() === null) {
166
			$author = $circle->getOwner()
167
							 ->getUserId();
168
		} else {
169
			$author = $circle->getViewer()
170
							 ->getUserId();
171
		}
172
		$recipient = $member->getUserId();
173
174
		try {