Skip to content

Commit

Permalink
tweak formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 24, 2017
1 parent f45746e commit f2e4859
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/Illuminate/Pagination/LengthAwarePaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,16 @@ public function lastPage()
public function toArray()
{
return [
'total' => $this->total(),
'per_page' => $this->perPage(),
'current_page' => $this->currentPage(),
'data' => $this->items->toArray(),
'from' => $this->firstItem(),
'last_page' => $this->lastPage(),
'next_page_url' => $this->nextPageUrl(),
'path' => $this->path,
'per_page' => $this->perPage(),
'prev_page_url' => $this->previousPageUrl(),
'from' => $this->firstItem(),
'to' => $this->lastItem(),
'data' => $this->items->toArray(),
'path' => $this->path,
'total' => $this->total(),
];
}

Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Pagination/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ public function hasMorePages()
public function toArray()
{
return [
'per_page' => $this->perPage(),
'current_page' => $this->currentPage(),
'data' => $this->items->toArray(),
'from' => $this->firstItem(),
'next_page_url' => $this->nextPageUrl(),
'path' => $this->path,
'per_page' => $this->perPage(),
'prev_page_url' => $this->previousPageUrl(),
'from' => $this->firstItem(),
'to' => $this->lastItem(),
'data' => $this->items->toArray(),
'path' => $this->path,
];
}

Expand Down

0 comments on commit f2e4859

Please sign in to comment.