Passed
Push — master ( 7fe1ca...6a64ab )
by compolom
01:52
created
src/Pagination.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function __construct(int $page, int $limit, int $total, int $length = 3)
28 28
     {
29
-        $this->totalPages = (int)ceil($total / $limit);
29
+        $this->totalPages = (int) ceil($total / $limit);
30 30
         $this->page = $page > 1 ? ($page > $this->totalPages ? 1 : $page) : 1;
31 31
         $this->limit = $limit > 0 ? $limit : 10;
32 32
         $this->total = $total;
Please login to merge, or discard this patch.