Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
4e656f02
Commit
4e656f02
authored
Mar 03, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
general code cleanup.
Signed-off-by:
Taylor Otwell
<
taylorotwell@gmail.com
>
parent
c4594afc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
paginator.php
laravel/paginator.php
+2
-3
No files found.
laravel/paginator.php
View file @
4e656f02
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment