Remove useless strtolower
This commit is contained in:
parent
63a748e4dc
commit
b24139113d
@ -372,7 +372,7 @@ class Eth
|
||||
|
||||
$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;
|
||||
|
||||
if (!array_key_exists($method, $this->methods)) {
|
||||
|
@ -71,7 +71,7 @@ class Net
|
||||
|
||||
$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;
|
||||
|
||||
if (!array_key_exists($method, $this->methods)) {
|
||||
|
@ -101,7 +101,7 @@ class Personal
|
||||
|
||||
$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;
|
||||
|
||||
if (!array_key_exists($method, $this->methods)) {
|
||||
|
@ -109,7 +109,7 @@ class Web3
|
||||
|
||||
$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;
|
||||
|
||||
if (!array_key_exists($method, $this->methods)) {
|
||||
|
Loading…
Reference in New Issue
Block a user