Code Duplication    Length = 11-15 lines in 6 locations

apps/dav/lib/Comments/RootCollection.php 1 location

@@ 67-79 (lines=13) @@
64
	 * @param EventDispatcherInterface $dispatcher
65
	 * @param ILogger $logger
66
	 */
67
	public function __construct(
68
		ICommentsManager $commentsManager,
69
		IUserManager $userManager,
70
		IUserSession $userSession,
71
		EventDispatcherInterface $dispatcher,
72
		ILogger $logger)
73
	{
74
		$this->commentsManager = $commentsManager;
75
		$this->logger = $logger;
76
		$this->userManager = $userManager;
77
		$this->userSession = $userSession;
78
		$this->dispatcher = $dispatcher;
79
	}
80
81
	/**
82
	 * initializes the collection. At this point of time, we need the logged in

apps/encryption/lib/Settings/Admin.php 1 location

@@ 59-73 (lines=15) @@
56
	/** @var ISession */
57
	private $session;
58
59
	public function __construct(
60
		IL10N $l,
61
		ILogger $logger,
62
		IUserSession $userSession,
63
		IConfig $config,
64
		IUserManager $userManager,
65
		ISession $session
66
	) {
67
		$this->l = $l;
68
		$this->logger = $logger;
69
		$this->userSession = $userSession;
70
		$this->config = $config;
71
		$this->userManager = $userManager;
72
		$this->session = $session;
73
	}
74
75
	/**
76
	 * @return TemplateResponse

lib/private/Mail/Mailer.php 1 location

@@ 78-88 (lines=11) @@
75
	 * @param IURLGenerator $urlGenerator
76
	 * @param IL10N $l10n
77
	 */
78
	public function __construct(IConfig $config,
79
						 ILogger $logger,
80
						 Defaults $defaults,
81
						 IURLGenerator $urlGenerator,
82
						 IL10N $l10n) {
83
		$this->config = $config;
84
		$this->logger = $logger;
85
		$this->defaults = $defaults;
86
		$this->urlGenerator = $urlGenerator;
87
		$this->l10n = $l10n;
88
	}
89
90
	/**
91
	 * Creates a new message object that can be passed to send()

lib/private/AvatarManager.php 1 location

@@ 69-80 (lines=12) @@
66
	 * @param ILogger $logger
67
	 * @param IConfig $config
68
	 */
69
	public function __construct(
70
			Manager $userManager,
71
			IAppData $appData,
72
			IL10N $l,
73
			ILogger $logger,
74
			IConfig $config) {
75
		$this->userManager = $userManager;
76
		$this->appData = $appData;
77
		$this->l = $l;
78
		$this->logger = $logger;
79
		$this->config = $config;
80
	}
81
82
	/**
83
	 * return a user specific instance of \OCP\IAvatar

lib/private/Avatar.php 1 location

@@ 85-95 (lines=11) @@
82
	 * @param ILogger $logger
83
	 * @param IConfig $config
84
	 */
85
	public function __construct(ISimpleFolder $folder,
86
		IL10N $l,
87
		$user,
88
		ILogger $logger,
89
		IConfig $config) {
90
		$this->folder = $folder;
91
		$this->l = $l;
92
		$this->user = $user;
93
		$this->logger = $logger;
94
		$this->config = $config;
95
	}
96
97
	/**
98
	 * @inheritdoc

apps/theming/lib/ImageManager.php 1 location

@@ 61-72 (lines=12) @@
58
	 * @param ICacheFactory $cacheFactory
59
	 * @param ILogger $logger
60
	 */
61
	public function __construct(IConfig $config,
62
								IAppData $appData,
63
								IURLGenerator $urlGenerator,
64
								ICacheFactory $cacheFactory,
65
								ILogger $logger
66
	) {
67
		$this->config = $config;
68
		$this->appData = $appData;
69
		$this->urlGenerator = $urlGenerator;
70
		$this->cacheFactory = $cacheFactory;
71
		$this->logger = $logger;
72
	}
73
74
	public function getImageUrl(string $key, bool $useSvg = true): string {
75
		$cacheBusterCounter = $this->config->getAppValue('theming', 'cachebuster', '0');