GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 7b42e1...c93f43 )
by Marius
10:41 queued 04:09
created

FilesRequestTrait::getFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @package presentation
4
 * @subpackage requests
5
 * @author marius orcsik <[email protected]>
6
 * @date 21.02.15
7
 */
8
namespace vsc\presentation\requests;
9
10
trait FilesRequestTrait {
11
	protected $aFiles = array();
12
13 17
	protected function initFiles($aFiles) {
14 17
		$this->aFiles = $aFiles;
15 17
	}
16
17
	/**
18
	 * @return bool
19
	 */
20
	public function hasFiles() {
21
		return (is_array($this->aFiles) && count($this->aFiles) >= 1);
22
	}
23
24
	/**
25
	 * @return array
26
	 */
27
	public function getFiles() {
28
		return $this->aFiles;
29
	}
30
31
	/**
32
	 * @param $sFileName
33
	 * @return array
0 ignored issues
show
Documentation introduced by
Should the return type not be array|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
34
	 */
35
	public function getFile($sFileName) {
0 ignored issues
show
Unused Code introduced by
The parameter $sFileName is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
36
		// @todo
37
	}
38
39
}
40