Passed
Push — master ( 6d21e0...1f4c02 )
by Morris
14:24 queued 10s
created

Capabilities   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 1 1
A getCapabilities() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * @copyright Copyright (c) 2020, Julien Veyssier
7
 *
8
 * @author Julien Veyssier <[email protected]>
9
 *
10
 * @license AGPL-3.0
11
 *
12
 * This code is free software: you can redistribute it and/or modify
13
 * it under the terms of the GNU Affero General Public License, version 3,
14
 * as published by the Free Software Foundation.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
 * GNU Affero General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU Affero General Public License, version 3,
22
 * along with this program. If not, see <http://www.gnu.org/licenses/>
23
 *
24
 */
25
namespace OCA\WeatherStatus;
26
27
use OCP\Capabilities\ICapability;
28
29
use OCA\WeatherStatus\AppInfo\Application;
30
31
/**
32
 * Class Capabilities
33
 *
34
 * @package OCA\UserStatus
35
 */
36
class Capabilities implements ICapability {
37
38
	/**
39
	 * Capabilities constructor.
40
	 *
41
	 */
42
	public function __construct() {
43
	}
44
45
	/**
46
	 * @inheritDoc
47
	 */
48
	public function getCapabilities() {
49
		return [
50
			Application::APP_ID => [
51
				'enabled' => true,
52
			],
53
		];
54
	}
55
}
56