From 34baec32bedbde95d7adfcab66d58aadaf7bafe3 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 24 Jul 2020 16:01:58 +0700 Subject: [PATCH] Fixes #7 : remove Adapter\Adapter::getHelpers() Signed-off-by: Abdul Malik Ikhsan --- src/Adapter/Adapter.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/Adapter/Adapter.php b/src/Adapter/Adapter.php index 5f377f82b..752ab59f5 100644 --- a/src/Adapter/Adapter.php +++ b/src/Adapter/Adapter.php @@ -233,26 +233,6 @@ public function createStatement($initialSql = null, $initialParameters = null) return $statement; } - public function getHelpers() - { - $functions = []; - $platform = $this->platform; - foreach (func_get_args() as $arg) { - switch ($arg) { - case self::FUNCTION_QUOTE_IDENTIFIER: - $functions[] = function ($value) use ($platform) { - return $platform->quoteIdentifier($value); - }; - break; - case self::FUNCTION_QUOTE_VALUE: - $functions[] = function ($value) use ($platform) { - return $platform->quoteValue($value); - }; - break; - } - } - } - /** * @param $name * @throws Exception\InvalidArgumentException