for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace App\Services;
class ExtendedValidationService {
public function validatePassword($field, $value, $params)
$field
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$params
{
return (bool) preg_match("/^[a-zA-Z0-9\@\!\#\$\%\?]{5,50}$/", $value);
}
public function validateName($field, $value, $params)
return (bool) preg_match("/^[a-z A-Z0-9\-]{1,50}$/", $value);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.