Commit 4e656f02 authored by Taylor Otwell's avatar Taylor Otwell

general code cleanup.

Signed-off-by: 's avatarTaylor Otwell <taylorotwell@gmail.com>
parent c4594afc
...@@ -173,8 +173,7 @@ class Paginator { ...@@ -173,8 +173,7 @@ class Paginator {
// //
// If there are not enough pages to make the creation of a slider possible // If there are not enough pages to make the creation of a slider possible
// based on the adjacent pages, we will simply display all of the pages. // based on the adjacent pages, we will simply display all of the pages.
// Otherwise, we will create a "truncating" slider which displays a // Otherwise, we will create a "truncating" sliding window.
// nice window of pages based on the current page.
if ($this->last < 7 + ($adjacent * 2)) if ($this->last < 7 + ($adjacent * 2))
{ {
$links = $this->range(1, $this->last); $links = $this->range(1, $this->last);
...@@ -212,7 +211,7 @@ class Paginator { ...@@ -212,7 +211,7 @@ class Paginator {
// If the current page is so close to the beginning that we do not have // If the current page is so close to the beginning that we do not have
// room to create a full sliding window, we will only show the first // room to create a full sliding window, we will only show the first
// several pages, followed by the ending section of the slider. // several pages, followed by the ending of the slider.
// //
// Likewise, if the page is very close to the end, we will create the // Likewise, if the page is very close to the end, we will create the
// beginning of the slider, but just show the last several pages at // beginning of the slider, but just show the last several pages at
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment