| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 4 | public function InitializeContent () |
|
| 12 | { |
||
| 13 | 4 | $customId = getURLParam ("custom", NULL); |
|
| 14 | 4 | $custom = CustomColumn::createCustom ($customId, $this->idGet); |
|
| 15 | 4 | $this->idPage = $custom->getEntryId (); |
|
| 16 | 4 | $this->title = $custom->value; |
|
| 17 | 4 | list ($this->entryArray, $this->totalNumber) = Book::getBooksByCustom ($custom, $this->idGet, $this->n); |
|
| 18 | 4 | } |
|
| 19 | } |
||
| 20 |
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.