From b42709c64688beaf14aa9764d2199c075baf1535 Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Tue, 30 Jan 2018 11:47:46 +0800 Subject: [PATCH] Remove comments. --- src/Methods/EthMethod.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Methods/EthMethod.php b/src/Methods/EthMethod.php index 61d5b39..5240eb7 100644 --- a/src/Methods/EthMethod.php +++ b/src/Methods/EthMethod.php @@ -147,21 +147,9 @@ class EthMethod extends JSONRPC implements IMethod if (!is_array($rules)) { throw new InvalidArgumentException('Please use array rules when call transform.'); } - // $defaultValues = $this->defaultValues; - foreach ($params as $key => $param) { if (isset($rules[$key])) { $formatted = call_user_func([$rules[$key], 'format'], $param); - - // if (is_int($formatted)) { - // if ($formatted >= 0) { - // $params[$key] = $formatted; - // } elseif (isset($defaultValues[$key])) { - // $params[$key] = $defaultValues[$key]; - // } - // } else { - // $params[$key] = $formatted; - // } $params[$key] = $formatted; } }