042660b15c
* Added static code analysis * Updated code to solve psalm issue
28 lines
457 B
PHP
28 lines
457 B
PHP
<?php
|
|
|
|
namespace Appwrite\Storage\Validator;
|
|
|
|
use Utopia\Validator;
|
|
|
|
class File extends Validator
|
|
{
|
|
public function getDescription()
|
|
{
|
|
return 'File is not valid';
|
|
}
|
|
|
|
/**
|
|
* NOT MUCH RIGHT NOW.
|
|
*
|
|
* TODO think what to do here, currently only used for parameter to be present in SDKs
|
|
*
|
|
* @param mixed $name
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function isValid($name)
|
|
{
|
|
return true;
|
|
}
|
|
}
|