Completed
Pull Request — master (#561)
by Tom
03:39
created

PersonalPanel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 20
ccs 0
cts 12
cp 0
rs 10
c 1
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getPanel() 0 3 1
A getPriority() 0 3 1
A getSectionID() 0 3 1
1
<?php
2
3
namespace OCA\Activity;
4
5
use OCP\Settings\ISettings;
6
7
class PersonalPanel implements ISettings {
8
9
	/** @var AppInfo\Application  */
10
	protected $app;
11
12
	public function __construct(\OCA\Activity\AppInfo\Application $app) {
13
		$this->app = $app;
14
	}
15
16
	public function getPanel() {
17
		return $this->app->getContainer()->query('SettingsController')->displayPanel();
18
	}
19
	public function getPriority() {
20
		return 10;
21
	}
22
	public function getSectionID() {
23
		return 'general';
24
	}
25
26
}