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.

PlainTextView   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 80%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 4
cts 5
cp 0.8
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A fetch() 0 9 2
1
<?php
2
/**
3
 * @package presentation
4
 * @subpackage views
5
 * @author marius orcsik <[email protected]>
6
 * @date 2011.02.17
7
 */
8
namespace vsc\presentation\views;
9
10
use vsc\domain\models\StaticFileModel;
11
12
class PlainTextView extends ViewA implements ViewInterface {
13
	protected $sContentType = 'text/plain';
14
	protected $sFolder = 'txt';
15
16 1
	public function fetch($includePath) {
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
17 1
		$oModel = $this->getModel();
18
		/* @var StaticFileModel $oModel */
19 1
		if (StaticFileModel::isValid($oModel)) {
20
			return $oModel->getFileContent();
21
		} else {
22 1
			return parent::fetch($includePath);
23
		}
24
	}
25
}
26