| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 1 | public function InitializeContent () |
|
| 12 | { |
||
| 13 | 1 | list ($this->entryArray, $this->totalNumber) = Book::getBooksByStartingLetter ($this->idGet, $this->n); |
|
| 14 | 1 | $this->idPage = Book::getEntryIdByLetter ($this->idGet); |
|
| 15 | |||
| 16 | 1 | $count = $this->totalNumber; |
|
| 17 | 1 | if ($count == -1) |
|
| 18 | 1 | $count = count ($this->entryArray); |
|
| 19 | |||
| 20 | 1 | $this->title = str_format (localize ("splitByLetter.letter"), str_format (localize ("bookword", $count), $count), $this->idGet); |
|
| 21 | 1 | } |
|
| 22 | } |
||
| 23 |
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.