diff --git a/src/Contract.php b/src/Contract.php index 65c8a5a..dd9efab 100644 --- a/src/Contract.php +++ b/src/Contract.php @@ -889,8 +889,6 @@ class Contract */ public function batch($status) { - $status = is_bool($status); - $this->eth->batch($status); } } diff --git a/src/Eth.php b/src/Eth.php index 78d9798..32d3eb8 100644 --- a/src/Eth.php +++ b/src/Eth.php @@ -173,8 +173,6 @@ class Eth */ public function batch($status) { - $status = is_bool($status); - $this->provider->batch($status); } -} \ No newline at end of file +} diff --git a/src/Methods/EthMethod.php b/src/Methods/EthMethod.php index 5240eb7..ea588be 100644 --- a/src/Methods/EthMethod.php +++ b/src/Methods/EthMethod.php @@ -2,9 +2,9 @@ /** * This file is part of web3.php package. - * + * * (c) Kuan-Cheng,Lai - * + * * @author Peter Lai * @license MIT */ @@ -20,35 +20,35 @@ class EthMethod extends JSONRPC implements IMethod { /** * validators - * + * * @var array */ protected $validators = []; /** * inputFormatters - * + * * @var array */ protected $inputFormatters = []; /** * outputFormatters - * + * * @var array */ protected $outputFormatters = []; /** * defaultValues - * + * * @var array */ protected $defaultValues = []; /** * construct - * + * * @param string $method * @param array $arguments * @return void @@ -60,7 +60,7 @@ class EthMethod extends JSONRPC implements IMethod /** * getInputFormatters - * + * * @return array */ public function getInputFormatters() @@ -70,7 +70,7 @@ class EthMethod extends JSONRPC implements IMethod /** * getOutputFormatters - * + * * @return array */ public function getOutputFormatters() @@ -80,7 +80,7 @@ class EthMethod extends JSONRPC implements IMethod /** * validate - * + * * @param array $params * @return bool */ @@ -134,7 +134,7 @@ class EthMethod extends JSONRPC implements IMethod /** * transform - * + * * @param array $params * @param array $rules * @return array @@ -155,4 +155,4 @@ class EthMethod extends JSONRPC implements IMethod } return $params; } -} \ No newline at end of file +} diff --git a/src/Net.php b/src/Net.php index bb06615..3195720 100644 --- a/src/Net.php +++ b/src/Net.php @@ -173,8 +173,6 @@ class Net */ public function batch($status) { - $status = is_bool($status); - $this->provider->batch($status); } -} \ No newline at end of file +} diff --git a/src/Personal.php b/src/Personal.php index 75aa200..66db560 100644 --- a/src/Personal.php +++ b/src/Personal.php @@ -173,8 +173,6 @@ class Personal */ public function batch($status) { - $status = is_bool($status); - $this->provider->batch($status); } } diff --git a/src/Providers/HttpProvider.php b/src/Providers/HttpProvider.php index b99de55..8cedf08 100644 --- a/src/Providers/HttpProvider.php +++ b/src/Providers/HttpProvider.php @@ -74,8 +74,6 @@ class HttpProvider extends Provider implements IProvider */ public function batch($status) { - $status = is_bool($status); - $this->isBatch = $status; } @@ -112,4 +110,4 @@ class HttpProvider extends Provider implements IProvider $this->methods[] = []; $this->batch = []; } -} \ No newline at end of file +} diff --git a/src/Shh.php b/src/Shh.php index bc438e4..14c9d03 100644 --- a/src/Shh.php +++ b/src/Shh.php @@ -2,9 +2,9 @@ /** * This file is part of web3.php package. - * + * * (c) Kuan-Cheng,Lai - * + * * @author Peter Lai * @license MIT */ @@ -27,14 +27,14 @@ class Shh /** * methods - * + * * @var array */ private $methods = []; /** * allowedMethods - * + * * @var array */ private $allowedMethods = [ @@ -64,7 +64,7 @@ class Shh /** * call - * + * * @param string $name * @param array $arguments * @return void @@ -110,7 +110,7 @@ class Shh /** * get - * + * * @param string $name * @return mixed */ @@ -126,7 +126,7 @@ class Shh /** * set - * + * * @param string $name * @param mixed $value * @return mixed @@ -143,7 +143,7 @@ class Shh /** * getProvider - * + * * @return \Web3\Providers\Provider */ public function getProvider() @@ -153,7 +153,7 @@ class Shh /** * setProvider - * + * * @param \Web3\Providers\Provider $provider * @return bool */ @@ -168,14 +168,12 @@ class Shh /** * batch - * + * * @param bool $status * @return void */ public function batch($status) { - $status = is_bool($status); - $this->provider->batch($status); } -} \ No newline at end of file +} diff --git a/src/Web3.php b/src/Web3.php index 35a2cde..47c0186 100644 --- a/src/Web3.php +++ b/src/Web3.php @@ -283,8 +283,6 @@ class Web3 */ public function batch($status) { - $status = is_bool($status); - $this->provider->batch($status); } -} \ No newline at end of file +}