| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 48 | protected function countItems(): int  | 
            ||
| 49 |     { | 
            ||
| 50 |         if ($this->config->items) { | 
            ||
| 51 | return $this->config->items;  | 
            ||
| 52 |         } elseif ($this->config->pages) { | 
            ||
| 53 | return $this->config->pages * $this->config->perPage;  | 
            ||
| 54 | }  | 
            ||
| 55 | |||
| 56 | $pages = $this->config->firstPage == 0 ? $this->config->lastPage + 1 : $this->config->lastPage;  | 
            ||
| 57 | |||
| 58 | return $pages * $this->config->perPage;  | 
            ||
| 59 | }  | 
            ||
| 61 |