Rename IVlaidators to IValidator.
This commit is contained in:
parent
e5698c99ed
commit
200f8cbb78
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Web3\Validators;
|
namespace Web3\Validators;
|
||||||
|
|
||||||
interface IValidators
|
interface IValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* validate
|
* validate
|
@ -12,8 +12,9 @@
|
|||||||
namespace Web3\Validators;
|
namespace Web3\Validators;
|
||||||
|
|
||||||
use Web3\Validators\IValidator;
|
use Web3\Validators\IValidator;
|
||||||
|
use Web3\Utils;
|
||||||
|
|
||||||
class TagValidator
|
class TagValidator implements IValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* validate
|
* validate
|
||||||
@ -23,6 +24,7 @@ class TagValidator
|
|||||||
*/
|
*/
|
||||||
public static function validate($value)
|
public static function validate($value)
|
||||||
{
|
{
|
||||||
|
$value = Utils::toString($value);
|
||||||
$tags = [
|
$tags = [
|
||||||
'latest', 'earliest', 'pending'
|
'latest', 'earliest', 'pending'
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user