open-orchestra/open-orchestra-cms-bundle

View on GitHub
WorkflowAdminBundle/Controller/Admin/TransitionController.php

Summary

Maintainability
A
0 mins
Test Coverage

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelBundle\Document\WorkflowProfile
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::EDIT, WorkflowProfile::ENTITY_TYPE);

Call to undeclared method \OpenOrchestra\WorkflowAdminBundle\Controller\Admin\TransitionController::get
Open

        $message = $this->get('translator')->trans('open_orchestra_workflow_admin.form.transitions.success');

Call to method handleRequest from undeclared class \Symfony\Component\Form\Form
Open

        $form->handleRequest($request);

Argument 2 (event) is \OpenOrchestra\ModelInterface\Event\WorkflowProfileEvent but \OpenOrchestra\WorkflowAdminBundle\Controller\Admin\TransitionController::dispatchEvent() takes \Symfony\Component\EventDispatcher\Event defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:81
Open

                $this->dispatchEvent(WorkflowProfileEvents::WORKFLOW_PROFILE_UPDATE, new WorkflowProfileEvent($profile));

Return type of formAction() is undeclared type \Symfony\Component\HttpFoundation\Response
Open

    public function formAction(Request $request)

Argument 1 (form) is \Symfony\Component\Form\Form but \OpenOrchestra\WorkflowAdminBundle\Controller\Admin\TransitionController::handleForm() takes \Symfony\Component\Form\FormInterface defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:29
Open

        if ($this->handleForm($form, $message)) {

Call to method __construct from undeclared class \OpenOrchestra\ModelInterface\Event\WorkflowProfileEvent
Open

                $this->dispatchEvent(WorkflowProfileEvents::WORKFLOW_PROFILE_UPDATE, new WorkflowProfileEvent($profile));

Reference to constant WORKFLOW_PROFILE_UPDATE from undeclared class \OpenOrchestra\ModelInterface\WorkflowProfileEvents
Open

                $this->dispatchEvent(WorkflowProfileEvents::WORKFLOW_PROFILE_UPDATE, new WorkflowProfileEvent($profile));

Parameter $request has undeclared type \Symfony\Component\HttpFoundation\Request
Open

    public function formAction(Request $request)

Call to undeclared method \OpenOrchestra\WorkflowAdminBundle\Controller\Admin\TransitionController::generateUrl
Open

           'action' => $this->generateUrl('open_orchestra_workflow_admin_transitions_form')

Argument 1 (form) is \Symfony\Component\Form\Form but \OpenOrchestra\WorkflowAdminBundle\Controller\Admin\TransitionController::renderAdminForm() takes \Symfony\Component\Form\FormInterface defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:58
Open

        return $this->renderAdminForm($form);

Possibly zero references to use statement for classlike/namespace Config (\Sensio\Bundle\FrameworkExtraBundle\Configuration)
Open

use Sensio\Bundle\FrameworkExtraBundle\Configuration as Config;

Call to undeclared method \OpenOrchestra\WorkflowAdminBundle\Controller\Admin\TransitionController::get
Open

        $currentLocale = $this->get('open_orchestra_backoffice.context_backoffice_manager')->getBackOfficeLanguage();

Call to undeclared method \OpenOrchestra\WorkflowAdminBundle\Controller\Admin\TransitionController::denyAccessUnlessGranted
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::EDIT, WorkflowProfile::ENTITY_TYPE);

Call to undeclared method \OpenOrchestra\WorkflowAdminBundle\Controller\Admin\TransitionController::get
Open

        $profiles = $this->get('open_orchestra_model.repository.workflow_profile')

Line exceeds 120 characters; contains 121 characters
Open

                $this->dispatchEvent(WorkflowProfileEvents::WORKFLOW_PROFILE_UPDATE, new WorkflowProfileEvent($profile));

There are no issues that match your filters.

Category
Status