Skip to content

Commit

Permalink
fixing tests , and code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepolo committed May 23, 2017
1 parent b1ef225 commit 6d37f00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Pagination/LengthAwarePaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function toArray()
'from' => $this->firstItem(),
'to' => $this->lastItem(),
'data' => $this->items->toArray(),
'path' => $this->path
'path' => $this->path,
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Pagination/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function toArray()
'from' => $this->firstItem(),
'to' => $this->lastItem(),
'data' => $this->items->toArray(),
'path' => $this->path
'path' => $this->path,
];
}

Expand Down
5 changes: 2 additions & 3 deletions tests/Pagination/PaginatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ class PaginatorTest extends TestCase
{
public function testSimplePaginatorReturnsRelevantContextInformation()
{
$p = new Paginator($array = ['item3', 'item4', 'item5'], 2, 2,
['path' => 'http://website.com/test']);
$p = new Paginator($array = ['item3', 'item4', 'item5'], 2, 2);

$this->assertEquals(2, $p->currentPage());
$this->assertTrue($p->hasPages());
Expand All @@ -25,7 +24,7 @@ public function testSimplePaginatorReturnsRelevantContextInformation()
'from' => 3,
'to' => 4,
'data' => ['item3', 'item4'],
'path' => 'http://website.com/test'
'path' => '/',
];

$this->assertEquals($pageInfo, $p->toArray());
Expand Down

0 comments on commit 6d37f00

Please sign in to comment.