Code Duplication    Length = 11-15 lines in 4 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/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

@@ 79-89 (lines=11) @@
76
	 * @param ILogger $logger
77
	 * @param IConfig $config
78
	 */
79
	public function __construct(ISimpleFolder $folder,
80
								IL10N $l,
81
								$user,
82
								ILogger $logger,
83
								IConfig $config) {
84
		$this->folder = $folder;
85
		$this->l = $l;
86
		$this->user = $user;
87
		$this->logger = $logger;
88
		$this->config = $config;
89
	}
90
91
	/**
92
	 * @inheritdoc