From 04b2e278dd8496fc3ffe38b205a5e6e0c93ce0da Mon Sep 17 00:00:00 2001 From: Vyacheslav Basenko Date: Wed, 14 Dec 2016 11:27:06 +0200 Subject: [PATCH] Removed unnecessary second substr call --- src/SearchDrivers/BaseSearchDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SearchDrivers/BaseSearchDriver.php b/src/SearchDrivers/BaseSearchDriver.php index 68d99d6..f7f52e3 100755 --- a/src/SearchDrivers/BaseSearchDriver.php +++ b/src/SearchDrivers/BaseSearchDriver.php @@ -72,7 +72,7 @@ abstract class BaseSearchDriver implements SearchDriverInterface */ public function query($searchString) { - $this->searchString = substr(substr(\DB::connection()->getPdo()->quote($searchString), 1), 0, -1); + $this->searchString = substr(\DB::connection()->getPdo()->quote($searchString), 1, -1); return $this; }