Remove useless strtolower

This commit is contained in:
sc0Vu 2017-12-26 16:10:56 +08:00
parent 63a748e4dc
commit b24139113d
4 changed files with 4 additions and 4 deletions

View File

@ -372,7 +372,7 @@ class Eth
$class = explode('\\', get_class()); $class = explode('\\', get_class());
if (strtolower($class[1]) === 'eth' && preg_match('/^[a-zA-Z0-9]+$/', $name) === 1) { if (preg_match('/^[a-zA-Z0-9]+$/', $name) === 1) {
$method = strtolower($class[1]) . '_' . $name; $method = strtolower($class[1]) . '_' . $name;
if (!array_key_exists($method, $this->methods)) { if (!array_key_exists($method, $this->methods)) {

View File

@ -71,7 +71,7 @@ class Net
$class = explode('\\', get_class()); $class = explode('\\', get_class());
if (strtolower($class[1]) === 'net' && preg_match('/^[a-zA-Z0-9]+$/', $name) === 1) { if (preg_match('/^[a-zA-Z0-9]+$/', $name) === 1) {
$method = strtolower($class[1]) . '_' . $name; $method = strtolower($class[1]) . '_' . $name;
if (!array_key_exists($method, $this->methods)) { if (!array_key_exists($method, $this->methods)) {

View File

@ -101,7 +101,7 @@ class Personal
$class = explode('\\', get_class()); $class = explode('\\', get_class());
if (strtolower($class[1]) === 'personal' && preg_match('/^[a-zA-Z0-9]+$/', $name) === 1) { if (preg_match('/^[a-zA-Z0-9]+$/', $name) === 1) {
$method = strtolower($class[1]) . '_' . $name; $method = strtolower($class[1]) . '_' . $name;
if (!array_key_exists($method, $this->methods)) { if (!array_key_exists($method, $this->methods)) {

View File

@ -109,7 +109,7 @@ class Web3
$class = explode('\\', get_class()); $class = explode('\\', get_class());
if (strtolower($class[1]) === 'web3' && preg_match('/^[a-zA-Z0-9]+$/', $name) === 1) { if (preg_match('/^[a-zA-Z0-9]+$/', $name) === 1) {
$method = strtolower($class[1]) . '_' . $name; $method = strtolower($class[1]) . '_' . $name;
if (!array_key_exists($method, $this->methods)) { if (!array_key_exists($method, $this->methods)) {