PersonalPanel::getSectionID()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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