Code Duplication    Length = 4-4 lines in 2 locations

lib/BackgroundJob.php 2 locations

@@ 144-147 (lines=4) @@
141
				$this->activityManager->publish($event);
142
			}
143
144
			if (!empty($publicity['notifications']) && $authorId !== $user->getUID()) {
145
				$notification->setUser($user->getUID());
146
				$this->notificationManager->notify($notification);
147
			}
148
		});
149
	}
150
@@ 177-180 (lines=4) @@
174
					$this->activityManager->publish($event);
175
				}
176
177
				if (!empty($publicity['notifications']) && $authorId !== $uid) {
178
					$notification->setUser($uid);
179
					$this->notificationManager->notify($notification);
180
				}
181
182
				$this->notifiedUsers[$uid] = true;
183
			}