This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
19
{
20
21
/**
22
* @var array Message templates
23
*/
24
protected $messageTemplate = 'The value is not a valid URL.';
25
26
/**
27
* Returns true if and only if $value meets the validation requirements
28
*
29
* The context specified can be used in the validation process so that
30
* the same value can be valid or invalid depending on that data.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.