Code Duplication    Length = 11-14 lines in 2 locations

lib/BackgroundJob.php 1 location

@@ 62-75 (lines=14) @@
59
	/** @var array */
60
	protected $notifiedUsers = [];
61
62
	public function __construct(
63
		IUserManager $userManager,
64
		IGroupManager $groupManager,
65
		IActivityManager $activityManager,
66
		INotificationManager $notificationManager,
67
		IURLGenerator $urlGenerator,
68
		Manager $manager) {
69
		$this->userManager = $userManager;
70
		$this->groupManager = $groupManager;
71
		$this->activityManager = $activityManager;
72
		$this->notificationManager = $notificationManager;
73
		$this->urlGenerator = $urlGenerator;
74
		$this->manager = $manager;
75
	}
76
77
	/**
78
	 * @param array $arguments

lib/Notification/Notifier.php 1 location

@@ 56-66 (lines=11) @@
53
	/** @var IURLGenerator */
54
	protected $urlGenerator;
55
56
	public function __construct(Manager $manager,
57
								IFactory $l10nFactory,
58
								INotificationManager $notificationManager,
59
								IUserManager $userManager,
60
								IURLGenerator $urlGenerator) {
61
		$this->manager = $manager;
62
		$this->l10nFactory = $l10nFactory;
63
		$this->notificationManager = $notificationManager;
64
		$this->userManager = $userManager;
65
		$this->urlGenerator = $urlGenerator;
66
	}
67
68
	/**
69
	 * Identifier of the notifier, only use [a-z0-9_]