Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 9 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
28 | View Code Duplication | public function getCoverThumbnail () { |
|
29 | foreach ($this->linkArray as $link) { |
||
30 | /* @var $link LinkNavigation */ |
||
31 | |||
32 | if ($link->rel == Link::OPDS_THUMBNAIL_TYPE) |
||
33 | return $link->hrefXhtml (); |
||
34 | } |
||
35 | return null; |
||
36 | } |
||
37 | |||
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.