| Conditions | 2 |
| Paths | 2 |
| Total Lines | 5 |
| Code Lines | 4 |
| Lines | 1 |
| Ratio | 20 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 1 | public function __construct($phref, $ptitle = NULL, $pfacetGroup = NULL, $pactiveFacet = FALSE) { |
|
| 12 | 1 | parent::__construct ($phref, Link::OPDS_PAGING_TYPE, "http://opds-spec.org/facet", $ptitle, $pfacetGroup, $pactiveFacet); |
|
| 13 | 1 | View Code Duplication | if (!is_null (GetUrlParam (DB))) $this->href = addURLParameter ($this->href, DB, GetUrlParam (DB)); |
| 14 | 1 | $this->href = parent::getScriptName() . $this->href; |
|
| 15 | 1 | } |
|
| 16 | } |
||
| 17 |
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.