codesniffer fixes

This commit is contained in:
2023-10-20 11:10:33 +10:00
parent ba6f67798d
commit 8233afa825
67 changed files with 608 additions and 394 deletions

View File

@@ -20,15 +20,19 @@ class UniqueFileName implements Rule
/**
* Determine if the validation rule passes.
*
* @param mixed $value
* @param mixed $attribute Attribute name.
* @param mixed $value Attribute value.
* @return boolean
*/
public function passes(string $attribute, $value): bool
public function passes(mixed $attribute, mixed $value): bool
{
return (Media::fileExists($value) === false);
}
/**
* Get the validation error message.
*
* @return string
*/
public function message(): string
{