Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 9 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
38 | View Code Duplication | public function getCover () { |
|
39 | foreach ($this->linkArray as $link) { |
||
40 | /* @var $link LinkNavigation */ |
||
41 | |||
42 | if ($link->rel == Link::OPDS_IMAGE_TYPE) |
||
43 | return $link->hrefXhtml (); |
||
44 | } |
||
45 | return null; |
||
46 | } |
||
47 | } |
||
48 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.