PersonalPanel   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 55.56%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 19
ccs 5
cts 9
cp 0.5556
rs 10
c 0
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 1
	public function __construct(\OCA\Activity\AppInfo\Application $app) {
13 1
		$this->app = $app;
14 1
	}
15
16 1
	public function getPanel() {
17 1
		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