Passed
Push — master ( 31f22c...5a83e4 )
by Florian
59s
created
src/Paginator/FluentPdoPaginator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Copyright (c) Phauthentic (https://github.com/Phauthentic)
5 5
  *
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 
53 53
         $countQuery = clone $repository;
54 54
         $countQuery->select('COUNT(*) AS __count__');
55
-        $paginationParams->setCount((int)$countQuery->fetch()['__count__']);
55
+        $paginationParams->setCount((int) $countQuery->fetch()['__count__']);
56 56
 
57 57
         /** @var $repository \Envms\FluentPDO\Query */
58 58
         $sortBy = $paginationParams->getSortBy();
59 59
         if ($sortBy !== null) {
60
-            $repository->orderBy($sortBy . ' ' . $paginationParams->getDirection());
60
+            $repository->orderBy($sortBy.' '.$paginationParams->getDirection());
61 61
         }
62 62
 
63 63
         return $repository
Please login to merge, or discard this patch.