Code Duplication    Length = 8-9 lines in 2 locations

controller/ownnoteajaxcontroller.php 1 location

@@ 49-56 (lines=8) @@
46
	private $uid;
47
	private $noteGroupService;
48
49
	public function __construct($appName, IRequest $request, ILogger $logger, IConfig $config, OwnNoteService $noteService, OwnNoteGroupService $groupService) {
50
		parent::__construct($appName, $request);
51
		$this->config = $config;
52
		$this->noteService = $noteService;
53
		$this->backend = new Backend($config);
54
		$this->noteGroupService = $groupService;
55
		$this->uid = \OC::$server->getUserSession()->getUser()->getUID();
56
	}
57
58
	/**
59
	 * AJAX FUNCTIONS

controller/ownnoteapicontroller.php 1 location

@@ 45-53 (lines=9) @@
42
	private $noteGroupService;
43
	private $uid;
44
45
	public function __construct($appName, IRequest $request, ILogger $logger, IConfig $config, OwnNoteService $noteService, OwnNoteGroupService $groupService){
46
		parent::__construct($appName, $request);
47
		$this->backend = new Backend($config);
48
		$this->config = $config;
49
		$this->appName = $appName;
50
		$this->noteService = $noteService;
51
		$this->noteGroupService = $groupService;
52
		$this->uid = \OC::$server->getUserSession()->getUser()->getUID();
53
	}
54
55
	/**
56
	* MOBILE FUNCTIONS