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

CodeReview_Issues_Deprecated::getExplanation()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 3
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 4
rs 10
ccs 3
cts 3
cp 1
crap 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
}