mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
Lint
This commit is contained in:
parent
cd72d70432
commit
382ffceed9
3 changed files with 3 additions and 6 deletions
|
|
@ -20,7 +20,6 @@ use Utopia\Config\Config;
|
||||||
use Utopia\Database\Adapter\MySQL;
|
use Utopia\Database\Adapter\MySQL;
|
||||||
use Utopia\Database\Database;
|
use Utopia\Database\Database;
|
||||||
use Utopia\Platform\Action;
|
use Utopia\Platform\Action;
|
||||||
use Utopia\Registry\Registry;
|
|
||||||
use Utopia\Request as UtopiaRequest;
|
use Utopia\Request as UtopiaRequest;
|
||||||
use Utopia\Response as UtopiaResponse;
|
use Utopia\Response as UtopiaResponse;
|
||||||
use Utopia\System\System;
|
use Utopia\System\System;
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,7 @@ class Method
|
||||||
protected ContentType $requestType = ContentType::JSON,
|
protected ContentType $requestType = ContentType::JSON,
|
||||||
protected array $parameters = [],
|
protected array $parameters = [],
|
||||||
protected array $additionalParameters = []
|
protected array $additionalParameters = []
|
||||||
)
|
) {
|
||||||
{
|
|
||||||
$this->validateMethod($name, $namespace);
|
$this->validateMethod($name, $namespace);
|
||||||
$this->validateAuthTypes($auth);
|
$this->validateAuthTypes($auth);
|
||||||
$this->validateDesc($description);
|
$this->validateDesc($description);
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,7 @@ class Parameter
|
||||||
protected mixed $default = null,
|
protected mixed $default = null,
|
||||||
protected mixed $validator = null,
|
protected mixed $validator = null,
|
||||||
protected bool $optional = false,
|
protected bool $optional = false,
|
||||||
)
|
) {
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName(): string
|
public function getName(): string
|
||||||
|
|
@ -72,4 +71,4 @@ class Parameter
|
||||||
{
|
{
|
||||||
$this->optional = $optional;
|
$this->optional = $optional;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue