From a4588d121790d959a0e9cf3fd8eaa579fb7e514b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Selahattin=20=C3=9Cnl=C3=BC?= Date: Thu, 8 Oct 2015 19:31:54 +0300 Subject: [PATCH] minor refactor --- src/QueryBuilder.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/QueryBuilder.php b/src/QueryBuilder.php index 65d7842..8afbb1b 100644 --- a/src/QueryBuilder.php +++ b/src/QueryBuilder.php @@ -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() @@ -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()