Code Duplication    Length = 4-4 lines in 2 locations

lib/BackgroundJob.php 2 locations

@@ 149-152 (lines=4) @@
146
				$this->activityManager->publish($event);
147
			}
148
149
			if (!empty($publicity['notifications']) && $authorId !== $user->getUID()) {
150
				$notification->setUser($user->getUID());
151
				$this->notificationManager->notify($notification);
152
			}
153
		});
154
	}
155
@@ 182-185 (lines=4) @@
179
					$this->activityManager->publish($event);
180
				}
181
182
				if (!empty($publicity['notifications']) && $authorId !== $uid) {
183
					$notification->setUser($uid);
184
					$this->notificationManager->notify($notification);
185
				}
186
187
				$this->notifiedUsers[$uid] = true;
188
			}