open-orchestra/open-orchestra-cms-bundle

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    public function validate($value, Constraint $constraint)

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

    public function __construct(NodeRepositoryInterface $repository)

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

            $value->getSiteId()

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

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

Call to method hasOtherNodeWithSameParentAndOrder from undeclared class \OpenOrchestra\ModelInterface\Repository\NodeRepositoryInterface
Open

        $result = $this->repository->hasOtherNodeWithSameParentAndOrder(

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

            $value->getParentId(),

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

            $value->getOrder(),

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

    public function validate($value, Constraint $constraint)

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

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

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

            $value->getNodeId(),

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

class UniqueNodeOrderValidator extends ConstraintValidator

There are no issues that match your filters.

Category
Status