Skip to content

Commit

Permalink
Update Builder.php
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseRafn authored Sep 7, 2017
1 parent 9bfc63c commit 238d310
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Builders/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public function __construct( Request $request )
* @return mixed|Model
*/
public function find( $id )
{//todo test

{
return $this->request->handleWithExceptions( function () use ( $id )
{
$response = $this->request->curl->get( "/{$this->entity}/{$id}" );
Expand Down Expand Up @@ -101,13 +100,13 @@ public function get( $filters = [] )
}

/**
* @param int $pageSize
* @param int $page
* @param int $pageSize
* @param array $filters
*
* @return \Illuminate\Support\Collection|Model[]
*/
public function getByPage( $pageSize = 500, $page = 0, $filters = [] )
public function getByPage( $page = 0, $pageSize = 500, $filters = [] )
{
$items = collect( [] );

Expand Down

0 comments on commit 238d310

Please sign in to comment.