open-orchestra/open-orchestra-cms-bundle

View on GitHub
BackofficeBundle/Controller/RedirectionController.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\RedirectionController::generateUrl
Open

            'action'     => $this->generateUrl('open_orchestra_backoffice_redirection_new'),

Reference to constant HTTP_CREATED from undeclared class \Symfony\Component\HttpFoundation\Response
Open

                Response::HTTP_CREATED,

Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\RedirectionController::get
Open

        $redirection->setSiteId($this->get('open_orchestra_backoffice.context_backoffice_manager')->getSiteId());

Call to method __construct from undeclared class \Symfony\Component\HttpFoundation\Response
Open

            $response = new Response(

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

    public function formAction(Request $request, $redirectionId)

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

use Sensio\Bundle\FrameworkExtraBundle\Configuration as Config;

Argument 2 (data) is object but \OpenOrchestra\BackofficeBundle\Controller\RedirectionController::createForm() takes null defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:94
Open

        $form = $this->createForm('oo_redirection', $redirection, array(

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

    public function formAction(Request $request, $redirectionId)

Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\RedirectionController::get
Open

        $redirection = $this->get('open_orchestra_model.repository.redirection')->find($redirectionId);

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

        return $this->renderAdminForm($form);

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

    public function newAction(Request $request)

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

        $form->handleRequest($request);

Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\RedirectionController::get
Open

        $message = $this->get('translator')->trans('open_orchestra_backoffice.form.redirection.new.success');

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

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

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

            $this->dispatchEvent(RedirectionEvents::REDIRECTION_CREATE, new RedirectionEvent($redirection));

Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\RedirectionController::denyAccessUnlessGranted
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::CREATE, $redirection);

Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\RedirectionController::get
Open

        $message =  $this->get('translator')->trans('open_orchestra_backoffice.form.redirection.edit.success');

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

            $this->dispatchEvent(RedirectionEvents::REDIRECTION_UPDATE, new RedirectionEvent($redirection));

Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\RedirectionController::denyAccessUnlessGranted
Open

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

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

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

Reference to constant REDIRECTION_UPDATE from undeclared class \OpenOrchestra\ModelInterface\RedirectionEvents
Open

            $this->dispatchEvent(RedirectionEvents::REDIRECTION_UPDATE, new RedirectionEvent($redirection));

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

    public function newAction(Request $request)

Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\RedirectionController::getParameter
Open

        $redirectionClass = $this->getParameter('open_orchestra_model.document.redirection.class');

Possibly zero references to use statement for classlike/namespace RedirectionInterface (\OpenOrchestra\ModelInterface\Model\RedirectionInterface)
Open

use OpenOrchestra\ModelInterface\Model\RedirectionInterface;

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

            $this->dispatchEvent(RedirectionEvents::REDIRECTION_CREATE, new RedirectionEvent($redirection));

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

            $this->dispatchEvent(RedirectionEvents::REDIRECTION_UPDATE, new RedirectionEvent($redirection));

Reference to constant REDIRECTION_CREATE from undeclared class \OpenOrchestra\ModelInterface\RedirectionEvents
Open

            $this->dispatchEvent(RedirectionEvents::REDIRECTION_CREATE, new RedirectionEvent($redirection));

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

        return $this->renderAdminForm($form);

Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\RedirectionController::generateUrl
Open

            'action' => $this->generateUrl('open_orchestra_backoffice_redirection_form', array(

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

        $form->handleRequest($request);

Expected 0 spaces before closing bracket; newline found
Open

        $form = $this->createForm('oo_redirection', $redirection, array(

There are no issues that match your filters.

Category
Status