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

PersonalPanel::getSectionID()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 1
b 0
f 0
cc 1
eloc 2
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
	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
}