Issues (36)

lib/Settings/Admin.php (2 issues)

Labels
Severity
1
<?php declare(strict_types=1);
2
3
4
/**
5
 * Files_FromMail - Recover your email attachments from your cloud.
6
 *
7
 * This file is licensed under the Affero General Public License version 3 or
8
 * later. See the COPYING file.
9
 *
10
 * @author Maxence Lange <[email protected]>
11
 * @copyright 2017
12
 * @license GNU AGPL version 3 or any later version
13
 *
14
 * This program is free software: you can redistribute it and/or modify
15
 * it under the terms of the GNU Affero General Public License as
16
 * published by the Free Software Foundation, either version 3 of the
17
 * License, or (at your option) any later version.
18
 *
19
 * This program is distributed in the hope that it will be useful,
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
 * GNU Affero General Public License for more details.
23
 *
24
 *  You should have received a copy of the GNU Affero General Public License
25
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
26
 *
27
 */
28
29
30
namespace OCA\Files_FromMail\Settings;
31
32
33
use OCP\AppFramework\Http\TemplateResponse;
0 ignored issues
show
The type OCP\AppFramework\Http\TemplateResponse was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
34
use OCP\Settings\ISettings;
0 ignored issues
show
The type OCP\Settings\ISettings was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
35
36
37
/**
38
 * Class Admin
39
 *
40
 * @package OCA\Files_FromMail\Settings
41
 */
42
class Admin implements ISettings {
43
44
45
	/**
46
	 * @return TemplateResponse
47
	 */
48
	public function getForm() {
49
		return new TemplateResponse('files_frommail', 'settings.admin', [], '');
50
	}
51
52
53
	/**
54
	 * @return string the section ID, e.g. 'sharing'
55
	 */
56
	public function getSection() {
57
		return 'additional';
58
	}
59
60
61
	/**
62
	 * @return int whether the form should be rather on the top or bottom of
63
	 * the admin section. The forms are arranged in ascending order of the
64
	 * priority values. It is required to return a value between 0 and 100.
65
	 *
66
	 * E.g.: 70
67
	 */
68
	public function getPriority() {
69
		return 80;
70
	}
71
72
}
73
74