open-orchestra/open-orchestra-cms-bundle

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    public function validate($value, Constraint $constraint)

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

class CheckVariableRoutePatternInMenuValidator extends ConstraintValidator

Call to method getRoutePattern from undeclared class \OpenOrchestra\ModelInterface\Model\NodeInterface
Open

            if (preg_match('/{.*}/', $value->getRoutePattern())) {

Call to method isInMenu from undeclared class \OpenOrchestra\ModelInterface\Model\NodeInterface
Open

        if ($value->isInMenu() || $value->isInFooter()) {

Parameter $value has undeclared type \OpenOrchestra\ModelInterface\Model\NodeInterface
Open

    public function validate($value, Constraint $constraint)

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

                $this->context->buildViolation($constraint->message)

Call to method isInFooter from undeclared class \OpenOrchestra\ModelInterface\Model\NodeInterface
Open

        if ($value->isInMenu() || $value->isInFooter()) {

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

                $this->context->buildViolation($constraint->message)

There are no issues that match your filters.

Category
Status