Completed
Push — master ( 612575...486a28 )
by Paweł
03:08
created

CodeReview_Issues_Deprecated   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 12
rs 10
ccs 7
cts 7
cp 1
wmc 3
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getExplanation() 0 4 2
1
<?php
2
3
class CodeReview_Issues_Deprecated 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 2
	public function __construct(array $params = array()) {
6 2
		$params['reason'] = 'deprecated';
7 2
		parent::__construct($params);
8 2
	}
9
10 1
	protected function getExplanation() {
11 1
		return "(deprecated since " . $this->data['version'] . ")"
12 1
			. ($this->data['fixinfoshort'] ? ' ' . $this->data['fixinfoshort'] : '');
13
	}
14
}