Passed
Pull Request — master (#1)
by compolom
03:28
created
src/Pagination.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function __construct(int $page, int $limit, int $total, int $length = 3)
25 25
     {
26
-        $this->totalPages = (int)ceil($total / $limit);
26
+        $this->totalPages = (int) ceil($total / $limit);
27 27
         $this->page = $page < 1 ? 1 : ($page > $this->totalPages ? $this->totalPages : $page);
28 28
         $this->limit = $limit > 0 ? $limit : 10;
29 29
         $this->total = $total;
Please login to merge, or discard this patch.