Completed
Branch master (486a28)
by Paweł
02:07
created

CodeReview_Issues_NotDocumented   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getExplanation() 0 3 1
1
<?php
2
3
class CodeReview_Issues_NotDocumented extends CodeReview_Issues_Abstract {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
5 1
	public function __construct(array $params = array()) {
6 1
		$params['reason'] = 'not_documented';
7 1
		parent::__construct($params);
8 1
	}
9
10 1
	protected function getExplanation() {
11 1
		return "(use of undocumented core function is unsafe)";
12
	}
13
}