Applied symplify rules to codebase.

This commit is contained in:
Jan Böhmer 2020-01-05 22:49:00 +01:00
parent 2f20d90041
commit 388e847b17
136 changed files with 1370 additions and 789 deletions

View file

@ -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()

View file

@ -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;
}