mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 19:28:51 +02:00
Applied symplify rules to codebase.
This commit is contained in:
parent
2f20d90041
commit
388e847b17
136 changed files with 1370 additions and 789 deletions
|
@ -34,9 +34,13 @@ use Symfony\Component\Validator\Constraint;
|
|||
*/
|
||||
class NoneOfItsChildren extends Constraint
|
||||
{
|
||||
/** @var string The message used if it is tried to assign a object as its own parent */
|
||||
/**
|
||||
* @var string The message used if it is tried to assign a object as its own parent
|
||||
*/
|
||||
public $self_message = 'validator.noneofitschild.self';
|
||||
/** @var string The message used if it is tried to use one of the children for as parent */
|
||||
/**
|
||||
* @var string The message used if it is tried to use one of the children for as parent
|
||||
*/
|
||||
public $children_message = 'validator.noneofitschild.children';
|
||||
|
||||
public function validatedBy()
|
||||
|
|
|
@ -34,6 +34,8 @@ use Symfony\Component\Validator\Constraints\Url;
|
|||
*/
|
||||
class UrlOrBuiltin extends Url
|
||||
{
|
||||
/** @var array A list of the placeholders that are treated as builtin */
|
||||
/**
|
||||
* @var array A list of the placeholders that are treated as builtin
|
||||
*/
|
||||
public $allowed_placeholders = Attachment::BUILTIN_PLACEHOLDER;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue