Completed
Push — master ( 438ba7...81a45e )
by Peter
03:11
created
src/Service/NavigateRange.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,19 +61,19 @@
 block discarded – undo
61 61
     {
62 62
         if (($this->left_offset < 0 || $this->right_offset < 0) && $this->config->getTotalPages() > 1) {
63 63
             // definition of offset to the left and to the right of the selected page
64
-            $this->left_offset = (int)floor(($this->config->getMaxNavigate() - 1) / 2);
65
-            $this->right_offset = (int)ceil(($this->config->getMaxNavigate() - 1) / 2);
64
+            $this->left_offset = (int) floor(($this->config->getMaxNavigate() - 1) / 2);
65
+            $this->right_offset = (int) ceil(($this->config->getMaxNavigate() - 1) / 2);
66 66
 
67 67
             // adjustment, if the offset is too large left
68 68
             if ($this->config->getCurrentPage() - $this->left_offset < 1) {
69
-                $offset = (int)abs($this->config->getCurrentPage() - 1 - $this->left_offset);
69
+                $offset = (int) abs($this->config->getCurrentPage() - 1 - $this->left_offset);
70 70
                 $this->left_offset = $this->left_offset - $offset;
71 71
                 $this->right_offset = $this->right_offset + $offset;
72 72
             }
73 73
 
74 74
             // adjustment, if the offset is too large right
75 75
             if ($this->config->getCurrentPage() + $this->right_offset > $this->config->getTotalPages()) {
76
-                $offset = (int)abs($this->config->getTotalPages() - $this->config->getCurrentPage() - $this->right_offset);
76
+                $offset = (int) abs($this->config->getTotalPages() - $this->config->getCurrentPage() - $this->right_offset);
77 77
                 $this->left_offset = $this->left_offset + $offset;
78 78
                 $this->right_offset = $this->right_offset - $offset;
79 79
             }
Please login to merge, or discard this patch.