Completed
Push — master ( 7adf15...541751 )
by Timo
03:00
created
src/Models/DataComponents/Paginator.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -254,11 +254,11 @@
 block discarded – undo
254 254
         }
255 255
 
256 256
         return '<ul class="pagination">' .
257
-               $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) .
258
-               $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) .
259
-               $this->_renderPageList() .
260
-               $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) .
261
-               $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) .
262
-               '</ul>';
257
+                $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) .
258
+                $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) .
259
+                $this->_renderPageList() .
260
+                $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) .
261
+                $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) .
262
+                '</ul>';
263 263
     }
264 264
 }
265 265
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      *
190 190
      * @return string
191 191
      */
192
-    private function _renderListItem(string $pagenumber, ? string $url, ? string $symbol = null): string
192
+    private function _renderListItem(string $pagenumber, ? string $url, ? string $symbol = null) : string
193 193
     {
194 194
         if ($url === null)
195 195
         {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         }
203 203
 
204 204
         $class = '';
205
-        if (+ $pagenumber === $this->_currentPage)
205
+        if (+$pagenumber === $this->_currentPage)
206 206
         {
207 207
             $class = ' class="active"';
208 208
         }
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         }
233 233
 
234 234
         $pageList = '';
235
-        for ($i = $start; $i <= $end; $i ++)
235
+        for ($i = $start; $i <= $end; $i++)
236 236
         {
237 237
             $pageList .= $this->_renderListItem($i, $this->_buildPageUrl($i));
238 238
         }
Please login to merge, or discard this patch.