| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 1 | public function InitializeContent () |
|
| 12 | { |
||
| 13 | 1 | $rating = Rating::getRatingById ($this->idGet); |
|
| 14 | 1 | $this->idPage = $rating->getEntryId (); |
|
| 15 | 1 | $this->title =str_format (localize ("ratingword", $rating->name/2), $rating->name/2); |
|
| 16 | 1 | list ($this->entryArray, $this->totalNumber) = Book::getBooksByRating ($this->idGet, $this->n); |
|
| 17 | 1 | } |
|
| 18 | } |
||
| 19 |
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.