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

@@ 172-178 (lines=7) @@
169
			return;
170
		}
171
172
		if ($circle->getViewer() === null) {
173
			$author = $circle->getOwner()
174
							 ->getUserId();
175
		} else {
176
			$author = $circle->getViewer()
177
							 ->getUserId();
178
		}
179
		$recipient = $member->getUserId();
180
181
		try {