open-orchestra/open-orchestra-cms-bundle

View on GitHub
Backoffice/Validator/Constraints/UniqueRedirectionValidator.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method getRoutePattern on non-class type array
Open

        if ('' !== $value->getRoutePattern()

Parameter $constraint has undeclared type \Symfony\Component\Validator\Constraint
Open

    public function validate($value, Constraint $constraint)

Parameter $repository has undeclared type \OpenOrchestra\ModelInterface\Repository\RedirectionRepositoryInterface
Open

    public function __construct(RedirectionRepositoryInterface $repository)

Reference to instance property message from undeclared class \Symfony\Component\Validator\Constraint
Open

                ->buildViolation($constraint->message)

Call to method getRoutePattern on non-class type array
Open

            && $this->repository->countByPattern($value->getRoutePattern(), $value->getId()) > 0

Call to method getId on non-class type array
Open

            && $this->repository->countByPattern($value->getRoutePattern(), $value->getId()) > 0

Reference to undeclared property \OpenOrchestra\Backoffice\Validator\Constraints\UniqueRedirectionValidator->context
Open

            $this->context

Call to method countByPattern from undeclared class \OpenOrchestra\ModelInterface\Repository\RedirectionRepositoryInterface
Open

            && $this->repository->countByPattern($value->getRoutePattern(), $value->getId()) > 0

Class extends undeclared class \Symfony\Component\Validator\ConstraintValidator
Open

class UniqueRedirectionValidator extends ConstraintValidator

There are no issues that match your filters.

Category
Status