PersonalSettingsController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 22
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A displayPanel() 0 4 1
1
<?php
2
3
/**
4
 * Nextcloud - OCR
5
 * This file is licensed under the Affero General Public License version 3 or
6
 * later. See the COPYING file.
7
 * 
8
 * @author Janis Koehr <[email protected]>
9
 * @copyright Janis Koehr 2017
10
 */
11
namespace OCA\Ocr\Controller;
12
13
use OCP\AppFramework\Controller;
14
use OCP\IRequest;
15
use OCP\Template;
16
use OCA\Ocr\Constants\OcrConstants;
17
18
19
class PersonalSettingsController extends Controller {
20
21
    /**
22
     * PersonalSettingsController constructor.
23
     * 
24
     * @param string $AppName            
25
     * @param IRequest $request            
26
     */
27 2
    public function __construct($AppName, IRequest $request) {
28 2
        parent::__construct($AppName, $request);
29 2
    }
30
31
    /**
32
     * @NoAdminRequired
33
     * 
34
     * @return Template
35
     */
36 1
    public function displayPanel() {
37 1
        $tmpl = new Template(OcrConstants::APP_NAME, 'settings-personal');
38 1
        return $tmpl;
39
    }
40
}