open-orchestra/open-orchestra-cms-bundle

View on GitHub
WorkflowAdminBundle/EventSubscriber/StatusableChoiceStatusSubscriber.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method getForm from undeclared class \Symfony\Component\Form\FormEvent
Open

        $form = $event->getForm();

Class implements undeclared interface \Symfony\Component\EventDispatcher\EventSubscriberInterface
Open

class StatusableChoiceStatusSubscriber implements EventSubscriberInterface

Call to method getData from undeclared class \Symfony\Component\Form\FormEvent
Open

        $data = $event->getData();

Parameter $event has undeclared type \Symfony\Component\Form\FormEvent
Open

    public function preSetData(FormEvent $event)

Call to method persist from undeclared class \Doctrine\Common\Persistence\ObjectManager
Open

        $this->objectManager->persist($currentStatus);

Parameter $objectManager has undeclared type \Doctrine\Common\Persistence\ObjectManager
Open

     public function __construct(

Parameter $statusable has undeclared type \OpenOrchestra\ModelInterface\Model\StatusableInterface
Open

    protected function getStatusChoices(StatusableInterface $statusable)

Parameter $statusRepository has undeclared type \OpenOrchestra\ModelInterface\Repository\StatusRepositoryInterface
Open

     public function __construct(

Reference to constant PRE_SET_DATA from undeclared class \Symfony\Component\Form\FormEvents
Open

            FormEvents::PRE_SET_DATA => 'preSetData'

Call to method getStatus from undeclared class \OpenOrchestra\ModelInterface\Model\StatusableInterface
Open

            if ($status->getId() != $statusable->getStatus()->getId()

Call to method isGranted from undeclared class \Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
Open

                && $this->authorizationChecker->isGranted($status, $statusable)

Call to method getStatus from undeclared class \OpenOrchestra\ModelInterface\Model\StatusableInterface
Open

        $currentStatus = $statusable->getStatus();

Call to method findAll from undeclared class \OpenOrchestra\ModelInterface\Repository\StatusRepositoryInterface
Open

        $availableStatus = $this->statusRepository->findAll();

Parameter $authorizationChecker has undeclared type \Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
Open

     public function __construct(

Multi-line function declaration not indented correctly; expected 5 spaces but found 4
Open

    ) {

Expected 0 spaces before closing bracket; newline found
Open

            $form->add('status', 'oo_status_choice', array_merge(array(

Line indented incorrectly; expected 4 spaces, found 5
Open

     public function __construct(

Closing brace indented incorrectly; expected 5 spaces, found 4
Open

    }

There are no issues that match your filters.

Category
Status