Removed unnecessary second substr call

This commit is contained in:
Vyacheslav Basenko
2016-12-14 11:27:06 +02:00
parent 6ea1214760
commit 04b2e278dd

View File

@ -72,7 +72,7 @@ abstract class BaseSearchDriver implements SearchDriverInterface
*/ */
public function query($searchString) 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; return $this;
} }