Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
selahattinunlu committed Oct 8, 2015
1 parent 97ff8c3 commit a4588d1
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ public function build()

public function get()
{
$this->result = $this->query->get();

return $this->result;
return $this->query->get();
}

public function paginate()
Expand All @@ -92,16 +90,12 @@ public function paginate()
throw new Exception("You can't use unlimited option for pagination", 1);
}

$this->result = $this->query->paginate($this->limit);

return $this->result;
return $this->query->paginate($this->limit);
}

public function lists($value, $key)
{
$this->result = $this->query->lists($value, $key);

return $this->result;
return $this->query->lists($value, $key);
}

protected function prepare()
Expand Down

0 comments on commit a4588d1

Please sign in to comment.