Completed
Push — stable9 ( ab68a4...eef0b3 )
by Olivier
10s
created

FilesPublicController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getList() 0 3 1
A download() 0 3 1
1
<?php
2
/**
3
 * ownCloud - galleryplus
4
 *
5
 * This file is licensed under the Affero General Public License version 3 or
6
 * later. See the COPYING file.
7
 *
8
 * @author Olivier Paroz <[email protected]>
9
 *
10
 * @copyright Olivier Paroz 2014-2016
11
 */
12
13
namespace OCA\GalleryPlus\Controller;
14
15
/**
16
 * Class FilesPublicController
17
 *
18
 * Note: Type casting only works if the "@param" parameters are also included in this class as
19
 * their not yet inherited
20
 *
21
 * @package OCA\GalleryPlus\Controller
22
 */
23
class FilesPublicController extends FilesController {
24
25
	/**
26
	 * @PublicPage
27
	 *
28
	 * Returns a list of all images from the folder the link gives access to
29
	 *
30
	 * @inheritDoc
31
	 *
32
	 * @param string $location a path representing the current album in the app
33
	 * @param string $features the list of supported features
34
	 * @param string $etag the last known etag in the client
35
	 * @param string $mediatypes the list of supported media types
36
	 */
37 4
	public function getList($location, $features, $etag, $mediatypes) {
38 4
		return parent::getList($location, $features, $etag, $mediatypes);
39
	}
40
41
	/**
42
	 * @PublicPage
43
	 * @NoCSRFRequired
44
	 *
45
	 * Sends the file matching the fileId
46
	 *
47
	 * @inheritDoc
48
	 *
49
	 * @param int $fileId the ID of the file we want to download
50
	 * @param string|null $filename
51
	 */
52 6
	public function download($fileId, $filename = null) {
53 6
		return parent::download($fileId, $filename);
54
	}
55
}
56