open-orchestra/open-orchestra-cms-bundle

View on GitHub
ApiBundle/Controller/ContentController.php

Summary

Maintainability
B
4 hrs
Test Coverage

The class ContentController has 12 public methods. Consider refactoring ContentController to keep number of public methods under 10.
Open

class ContentController extends BaseController
{
    use ListStatus;

    /**

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

The class ContentController has an overall complexity of 50 which is very high. The configured complexity threshold is 50.
Open

class ContentController extends BaseController
{
    use ListStatus;

    /**

File ContentController.php has 304 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace OpenOrchestra\ApiBundle\Controller;

use OpenOrchestra\ApiBundle\Controller\ControllerTrait\ListStatus;
Severity: Minor
Found in ApiBundle/Controller/ContentController.php - About 3 hrs to fix

Method duplicateAction has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function duplicateAction(Request $request)
    {
        $format = $request->get('_format', 'json');
        $facade = $this->get('jms_serializer')->deserialize(
            $request->getContent(),
Severity: Minor
Found in ApiBundle/Controller/ContentController.php - About 1 hr to fix

The class ContentController has a coupling between objects value of 17. Consider to reduce the number of dependencies under 13.
Open

class ContentController extends BaseController
{
    use ListStatus;

    /**

CouplingBetweenObjects

Since: 1.1.0

A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

Example

class Foo {
    /**
     * @var \foo\bar\X
     */
    private $x = null;

    /**
     * @var \foo\bar\Y
     */
    private $y = null;

    /**
     * @var \foo\bar\Z
     */
    private $z = null;

    public function setFoo(\Foo $foo) {}
    public function setBar(\Bar $bar) {}
    public function setBaz(\Baz $baz) {}

    /**
     * @return \SplObjectStorage
     * @throws \OutOfRangeException
     * @throws \InvalidArgumentException
     * @throws \ErrorException
     */
    public function process(\Iterator $it) {}

    // ...
}

Source https://phpmd.org/rules/design.html#couplingbetweenobjects

Avoid using static access to class '\OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration' in method 'listAction'.
Open

        $configuration = PaginateFinderConfiguration::generateFromRequest($request, $mapping);

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        return $this->get('open_orchestra_api.transformer_manager')->transform('content', $content);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Reference to constant ENTITY_TYPE from undeclared class \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::READ, ContentInterface::ENTITY_TYPE);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::denyAccessUnlessGranted
Open

            $this->denyAccessUnlessGranted(ContributionActionInterface::DELETE, $content);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $repository = $this->get('open_orchestra_model.repository.content');
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::dispatchEvent
Open

        $this->dispatchEvent(ContentEvents::CONTENT_DUPLICATE, new ContentEvent($newContent));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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\ApiBundle\Controller\ContentController::get
Open

        $content = $this->get('open_orchestra_api.transformer_manager')->reverseTransform('content', $facade);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Returning type array{} but duplicateAction() is declared to return \Symfony\Component\HttpFoundation\Response
Open

        return array();

@throws annotation of deleteAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentTypeNotAllowedException, which does not extend Error/Exception
Open

    public function deleteAction($contentId)

Return type of listContentByAuthorAndSiteIdAction() is undeclared type \OpenOrchestra\BaseApi\Facade\FacadeInterface
Open

    public function listContentByAuthorAndSiteIdAction($published)

@throws annotation of listAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentTypeNotAllowedException, which does not extend Error/Exception
Open

    public function listAction(Request $request, $contentTypeId, $siteId, $language)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::denyAccessUnlessGranted
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::READ, ContentInterface::ENTITY_TYPE);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

    public function deleteContentVersionsAction(Request $request)

Call to method getContent from undeclared class \Symfony\Component\HttpFoundation\Request
Open

            $request->getContent(),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Reference to constant CONTENT_DELETE from undeclared class \OpenOrchestra\ModelInterface\ContentEvents
Open

                $this->dispatchEvent(ContentEvents::CONTENT_DELETE, new ContentDeleteEvent($contentId, $content->getSiteId()));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Reference to constant CONTENT_DELETE from undeclared class \OpenOrchestra\ModelInterface\ContentEvents
Open

        $this->dispatchEvent(ContentEvents::CONTENT_DELETE, new ContentDeleteEvent($contentId, $content->getSiteId()));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $contents = $this->get('open_orchestra_model.repository.content')->findByHistoryAndSiteId(
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Reference to constant CONTENT_DELETE_VERSION from undeclared class \OpenOrchestra\ModelInterface\ContentEvents
Open

                $this->dispatchEvent(ContentEvents::CONTENT_DELETE_VERSION, new ContentEvent($content));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::DELETE, $content)) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of showAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentTypeNotAllowedException, which does not extend Error/Exception
Open

    public function showAction($contentId, $language, $version)

Argument 3 (version) is string but \OpenOrchestra\ApiBundle\Controller\ContentController::findOneContent() takes int|null defined at /code/ApiBundle/Controller/ContentController.php:490
Open

        $content = $this->findOneContent($contentId, $language, $version);

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

            $this->get('open_orchestra_model.repository.content')->removeContentVersion($storageIds);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $contentType = $this->get('open_orchestra_model.repository.content_type')->findOneByContentTypeIdInLastVersion($contentTypeId);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::denyAccessUnlessGranted
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::DELETE, $content);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $objectManager = $this->get('object_manager');
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

                $this->dispatchEvent(ContentEvents::CONTENT_DUPLICATE, new ContentEvent($duplicateContent));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::dispatchEvent
Open

        $this->dispatchEvent(ContentEvents::CONTENT_DELETE, new ContentDeleteEvent($contentId, $content->getSiteId()));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::isGranted
Open

                $this->isGranted(ContributionActionInterface::DELETE, $content)
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::denyAccessUnlessGranted
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::EDIT, $content);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Returning type array{} but deleteAction() is declared to return \Symfony\Component\HttpFoundation\Response
Open

        return array();

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method generateFromRequest from undeclared class \OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration
Open

        $configuration = PaginateFinderConfiguration::generateFromRequest($request, $mapping);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method getContent from undeclared class \Symfony\Component\HttpFoundation\Request
Open

            $request->getContent(),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::getParameter
Open

            $this->getParameter('open_orchestra_api.facade.content.class'),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

    public function deleteContentVersionsAction(Request $request)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::getParameter
Open

            $this->getParameter('open_orchestra_api.facade.content_collection.class'),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $facade = $this->get('jms_serializer')->deserialize(
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of newVersionAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentTypeNotAllowedException, which does not extend Error/Exception
Open

    public function newVersionAction(Request $request, $contentId, $language, $originalVersion)

Argument 3 (version) is string but \OpenOrchestra\ApiBundle\Controller\ContentController::findOneContent() takes int|null defined at /code/ApiBundle/Controller/ContentController.php:490
Open

        $content = $this->findOneContent($contentId, $language, $originalVersion);

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

        $this->dispatchEvent(ContentEvents::CONTENT_DUPLICATE, new ContentEvent($newContent));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Class extends undeclared class \OpenOrchestra\BaseApiBundle\Controller\BaseController
Open

class ContentController extends BaseController
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of showAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentNotFoundHttpException, which does not extend Error/Exception
Open

    public function showAction($contentId, $language, $version)

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

    public function duplicateAction(Request $request)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

                $duplicateContent = $this->get('open_orchestra_backoffice.manager.content')->duplicateContent($content, $newContentId);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

                $this->dispatchEvent(ContentEvents::CONTENT_DELETE_VERSION, new ContentEvent($content));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

    public function deleteContentsAction(Request $request)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::dispatchEvent
Open

                $this->dispatchEvent(ContentEvents::CONTENT_DELETE, new ContentDeleteEvent($contentId, $content->getSiteId()));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

    public function deleteAction($contentId)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $user = $this->get('security.token_storage')->getToken()->getUser();
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        return $this->get('open_orchestra_api.transformer_manager')->transform('content_collection', $contents);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $objectManager = $this->get('object_manager');
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::denyAccessUnlessGranted
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::CREATE, $content);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Reference to constant CONTENT_UPDATE from undeclared class \OpenOrchestra\ModelInterface\ContentEvents
Open

            array(ContentEvents::CONTENT_CREATION, ContentEvents::CONTENT_UPDATE),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of newVersionAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentNotFoundHttpException, which does not extend Error/Exception
Open

    public function newVersionAction(Request $request, $contentId, $language, $originalVersion)

Return type of showAction() is undeclared type \OpenOrchestra\BaseApi\Facade\FacadeInterface
Open

    public function showAction($contentId, $language, $version)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Checking instanceof against undeclared class \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

            if ($content instanceof ContentInterface) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Reference to constant CONTENT_DUPLICATE from undeclared class \OpenOrchestra\ModelInterface\ContentEvents
Open

                $this->dispatchEvent(ContentEvents::CONTENT_DUPLICATE, new ContentEvent($duplicateContent));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Returning type array{} but deleteContentVersionsAction() is declared to return \Symfony\Component\HttpFoundation\Response
Open

        return array();

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::getParameter
Open

            $this->getParameter('open_orchestra_api.facade.content_collection.class'),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

                $this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::DELETE, $content) &&
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Returning type array{} but deleteContentsAction() is declared to return \Symfony\Component\HttpFoundation\Response
Open

        return array();

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $siteId = $this->get('open_orchestra_backoffice.context_backoffice_manager')->getSiteId();
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method getContent from undeclared class \Symfony\Component\HttpFoundation\Request
Open

            $request->getContent(),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Reference to constant CONTENT_DUPLICATE from undeclared class \OpenOrchestra\ModelInterface\ContentEvents
Open

        $this->dispatchEvent(ContentEvents::CONTENT_DUPLICATE, new ContentEvent($newContent));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(ContentTypeStrategy::READ_LIST, $contentType)) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $repository = $this->get('open_orchestra_model.repository.content');
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of deleteAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentNotDeletableException, which does not extend Error/Exception
Open

    public function deleteAction($contentId)

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

        $this->dispatchEvent(ContentEvents::CONTENT_DELETE, new ContentDeleteEvent($contentId, $content->getSiteId()));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of newLanguageAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentNotFoundHttpException, which does not extend Error/Exception
Open

    public function newLanguageAction($contentId, $language)

Possibly zero references to use statement for classlike/namespace Api (\OpenOrchestra\BaseApiBundle\Controller\Annotation)
Open

use OpenOrchestra\BaseApiBundle\Controller\Annotation as Api;

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $facade = $this->get('open_orchestra_api.transformer_manager')->transform('content_collection', $collection);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of duplicateAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentTypeNotAllowedException, which does not extend Error/Exception
Open

    public function duplicateAction(Request $request)

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

    public function duplicateAction(Request $request)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::getParameter
Open

        $frontLanguages = $this->getParameter('open_orchestra_backoffice.orchestra_choice.front_language');
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $facade = $this->get('jms_serializer')->deserialize(
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::isGranted
Open

            if ($this->isGranted(ContributionActionInterface::DELETE, $content) &&
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

                $this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(ContentStrategy::DELETE_VERSION, $content)
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::dispatchEvent
Open

                $this->dispatchEvent(ContentEvents::CONTENT_DELETE_VERSION, new ContentEvent($content));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $contents = $this->get('open_orchestra_api.transformer_manager')->reverseTransform('content_collection', $facade);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $site = $this->get('open_orchestra_model.repository.site')->findOneBySiteId($siteId);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method get from undeclared class \Symfony\Component\HttpFoundation\Request
Open

            $request->get('_format', 'json')
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of changeStatusAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentNotFoundHttpException, which does not extend Error/Exception
Open

    public function changeStatusAction(Request $request, $saveOldPublishedVersion)

@throws annotation of changeStatusAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentTypeNotAllowedException, which does not extend Error/Exception
Open

    public function changeStatusAction(Request $request, $saveOldPublishedVersion)

Checking instanceof against undeclared class \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

        if (!$content instanceof ContentInterface) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

                $content->getSiteId()
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

            $language = $this->get('open_orchestra_backoffice.context_backoffice_manager')->getSiteDefaultLanguage();
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

    public function listAction(Request $request, $contentTypeId, $siteId, $language)

Return type of listAction() is undeclared type \OpenOrchestra\BaseApi\Facade\FacadeInterface
Open

    public function listAction(Request $request, $contentTypeId, $siteId, $language)

Call to method get from undeclared class \Symfony\Component\HttpFoundation\Request
Open

        $format = $request->get('_format', 'json');
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $facade = $this->get('jms_serializer')->deserialize(
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::dispatchEvent
Open

                $this->dispatchEvent(ContentEvents::CONTENT_DUPLICATE, new ContentEvent($duplicateContent));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method getContent from undeclared class \Symfony\Component\HttpFoundation\Request
Open

            $request->getContent(),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $contents = $this->get('open_orchestra_api.transformer_manager')->reverseTransform('content_collection', $facade);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

                $this->dispatchEvent(ContentEvents::CONTENT_DELETE, new ContentDeleteEvent($contentId, $content->getSiteId()));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Saw a token Phan may have failed to parse after '* @throws ContentTypeNotAllowedException,': after ContentTypeNotAllowedException, saw ','
Open

     * @throws ContentTypeNotAllowedException,

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $facade = $this->get('jms_serializer')->deserialize(
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

    public function listStatusesForContentAction($contentId, $language, $version)

Argument 1 (document) is \OpenOrchestra\ModelInterface\Model\ContentInterface but \OpenOrchestra\ApiBundle\Controller\ContentController::listStatuses() takes \OpenOrchestra\ModelInterface\Model\StatusableInterface defined at /code/ApiBundle/Controller/ControllerTrait/ListStatus.php:17
Open

        return $this->listStatuses($content);

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $this->get('open_orchestra_api.transformer_manager')->reverseTransform('content', $facade, array('source' => $content));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Returning type array{} but changeStatusAction() is declared to return \Symfony\Component\HttpFoundation\Response
Open

        return array();

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

        $event = new ContentEvent($content, $contentSource->getStatus());
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

    public function newLanguageAction($contentId, $language)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::denyAccessUnlessGranted
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::EDIT, $content);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

    public function listVersionAction($contentId, $language)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $facade = $this->get('jms_serializer')->deserialize(
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method get from undeclared class \Symfony\Component\HttpFoundation\Request
Open

            $request->get('_format', 'json')
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $contentRepository = $this->get('open_orchestra_model.repository.content');
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $this->get('object_manager')->flush();
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

        if ($status !== $contentSource->getStatus()) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Parameter $contentSource has undeclared type \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

    protected function updateStatus(

Parameter $contentType has undeclared type \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open

    protected function getMappingContentType($language, ContentTypeInterface $contentType)

Argument 3 (version) is string but \OpenOrchestra\ApiBundle\Controller\ContentController::findOneContent() takes int|null defined at /code/ApiBundle/Controller/ContentController.php:490
Open

        $content = $this->findOneContent($contentId, $language, $version);

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

                $this->get('object_manager')->remove($oldPublishedVersion);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method getDefaultListable from undeclared class \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open

        foreach ($contentType->getDefaultListable() as $column => $isListable) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $content = $this->get('open_orchestra_model.repository.content')->findLastVersion($contentId);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Checking instanceof against undeclared class \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

        if (!$content instanceof ContentInterface) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

            if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        return $this->get('open_orchestra_api.transformer_manager')->transform('content_collection', $contents);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method getContent from undeclared class \Symfony\Component\HttpFoundation\Request
Open

            $request->getContent(),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Parameter $content has undeclared type \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

    protected function updateStatus(

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

    public function deleteContentsAction(Request $request)

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

    public function newVersionAction(Request $request, $contentId, $language, $originalVersion)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $newContent = $this->get('open_orchestra_backoffice.manager.content')->newVersionContent($content, $facade->versionName);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of listStatusesForContentAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentNotFoundHttpException, which does not extend Error/Exception
Open

    public function listStatusesForContentAction($contentId, $language, $version)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $content = $this->get('open_orchestra_model.repository.content')->find($facade->id);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

        if (true === $content->getStatus()->isPublishedState() && false === $saveOldPublishedVersion) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Expected @param annotation for language to be before the @param annotation for version
Open

     * @param string  $version

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::denyAccessUnlessGranted
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::READ, $content);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $repository =  $this->get('open_orchestra_model.repository.content');
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method get from undeclared class \Symfony\Component\HttpFoundation\Request
Open

        $format = $request->get('_format', 'json');
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method get from undeclared class \Symfony\Component\HttpFoundation\Request
Open

        $format = $request->get('_format', 'json');
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

            return $this->get('open_orchestra_api.transformer_manager')->get('content_collection')->transform(array());
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Reference to constant CONTENT_CREATION from undeclared class \OpenOrchestra\ModelInterface\ContentEvents
Open

            array(ContentEvents::CONTENT_CREATION, ContentEvents::CONTENT_UPDATE),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

    public function newVersionAction(Request $request, $contentId, $language, $originalVersion)

Checking instanceof against undeclared class \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

        if (!$content instanceof ContentInterface) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Returning type array{} but newVersionAction() is declared to return \Symfony\Component\HttpFoundation\Response
Open

        return array();

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

        $this->dispatchEvent(ContentEvents::CONTENT_DUPLICATE, new ContentEvent($newContent));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $contents = $this->get('open_orchestra_model.repository.content')->findNotDeletedSortByUpdatedAt($contentId, $language);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

        $status = $content->getStatus();
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::dispatchEvent
Open

        $this->dispatchEvent(ContentEvents::CONTENT_CHANGE_STATUS, $event);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method getFields from undeclared class \OpenOrchestra\ModelInterface\Model\ContentTypeInterface
Open

        foreach ($contentType->getFields() as $field) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $newContent = $this->get('open_orchestra_backoffice.manager.content')->createNewLanguageContent($content, $language);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::denyAccessUnlessGranted
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::READ, $content);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

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

    public function changeStatusAction(Request $request, $saveOldPublishedVersion)

@throws annotation of listVersionAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentTypeNotAllowedException, which does not extend Error/Exception
Open

    public function listVersionAction($contentId, $language)

Returning type \OpenOrchestra\WorkflowAdminBundle\Facade\StatusCollectionFacade but listStatusesForContentAction() is declared to return \Symfony\Component\HttpFoundation\Response
Open

        return $this->listStatuses($content);

Checking instanceof against undeclared class \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

        if (!$content instanceof ContentInterface) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

            $oldPublishedVersion = $this->get('open_orchestra_model.repository.content')->findOnePublished(
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Checking instanceof against undeclared class \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

            if ($oldPublishedVersion instanceof ContentInterface) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of listStatusesForContentAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentTypeNotAllowedException, which does not extend Error/Exception
Open

    public function listStatusesForContentAction($contentId, $language, $version)

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

        $event = new ContentEvent($content, $contentSource->getStatus());
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of newLanguageAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\ContentTypeNotAllowedException, which does not extend Error/Exception
Open

    public function newLanguageAction($contentId, $language)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        $objectManager = $this->get('object_manager');
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Returning type array{} but newLanguageAction() is declared to return \Symfony\Component\HttpFoundation\Response
Open

        return array();

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

    public function changeStatusAction(Request $request, $saveOldPublishedVersion)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::denyAccessUnlessGranted
Open

        $this->denyAccessUnlessGranted(ContributionActionInterface::EDIT, $content);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method getContentId from undeclared class \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

                $content->getContentId(),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to method getLanguage from undeclared class \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

                $content->getLanguage(),
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Reference to constant CONTENT_CHANGE_STATUS from undeclared class \OpenOrchestra\ModelInterface\ContentEvents
Open

        $this->dispatchEvent(ContentEvents::CONTENT_CHANGE_STATUS, $event);
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Reference to constant CONTENT_DUPLICATE from undeclared class \OpenOrchestra\ModelInterface\ContentEvents
Open

        $this->dispatchEvent(ContentEvents::CONTENT_DUPLICATE, new ContentEvent($newContent));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::dispatchEvent
Open

        $this->dispatchEvent(ContentEvents::CONTENT_DUPLICATE, new ContentEvent($newContent));
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

@throws annotation of changeStatusAction has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\StatusChangeNotGrantedHttpException, which does not extend Error/Exception
Open

    public function changeStatusAction(Request $request, $saveOldPublishedVersion)

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::get
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Call to undeclared method \OpenOrchestra\ApiBundle\Controller\ContentController::isGranted
Open

            if (!$this->isGranted($status, $contentSource)) {
Severity: Critical
Found in ApiBundle/Controller/ContentController.php by phan

Return type of findOneContent() is undeclared type \OpenOrchestra\ModelInterface\Model\ContentInterface
Open

    protected function findOneContent($contentId, $language, $version = null)

Avoid excessively long variable names like $saveOldPublishedVersion. Keep variable name length under 20.
Open

    public function changeStatusAction(Request $request, $saveOldPublishedVersion)

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $saveOldPublishedVersion. Keep variable name length under 20.
Open

        $saveOldPublishedVersion

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $availableContentTypes. Keep variable name length under 20.
Open

        $availableContentTypes = $site->getContentTypes();

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Line exceeds 120 characters; contains 135 characters
Open

                $duplicateContent = $this->get('open_orchestra_backoffice.manager.content')->duplicateContent($content, $newContentId);

Line exceeds 120 characters; contains 132 characters
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::DELETE, $content)) {

Line exceeds 120 characters; contains 129 characters
Open

        $newContent = $this->get('open_orchestra_backoffice.manager.content')->newVersionContent($content, $facade->versionName);

Line exceeds 120 characters; contains 135 characters
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(ContentTypeStrategy::READ_LIST, $contentType)) {

Line exceeds 120 characters; contains 151 characters
Open

        $collection = $repository->findForPaginateFilterByContentTypeSiteAndLanguage($configuration, $contentTypeId, $siteId, $language, $searchTypes);

Line exceeds 120 characters; contains 151 characters
Open

        $recordsFiltered = $repository->countWithFilterAndContentTypeSiteAndLanguage($configuration, $contentTypeId, $siteId, $language, $searchTypes);

Line exceeds 120 characters; contains 130 characters
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {

Line exceeds 120 characters; contains 129 characters
Open

            $mapping['fields.' . $field->getFieldId() . '.string_value'] = 'attributes.' . $field->getFieldId() . '.stringValue';

Line exceeds 120 characters; contains 135 characters
Open

        $contentType = $this->get('open_orchestra_model.repository.content_type')->findOneByContentTypeIdInLastVersion($contentTypeId);

Line exceeds 120 characters; contains 132 characters
Open

                $this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(ContentStrategy::DELETE_VERSION, $content)

Line exceeds 120 characters; contains 130 characters
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {

Line exceeds 120 characters; contains 125 characters
Open

     * @Config\Route("/list/by-author", name="open_orchestra_api_content_list_author_and_site", defaults={"published": null})

Line exceeds 120 characters; contains 130 characters
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {

Line exceeds 120 characters; contains 130 characters
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {

Line exceeds 120 characters; contains 154 characters
Open

     * @Config\Route("/list/not-published-by-author", name="open_orchestra_api_content_list_author_and_site_not_published", defaults={"published": false})

Line exceeds 120 characters; contains 127 characters
Open

                $this->dispatchEvent(ContentEvents::CONTENT_DELETE, new ContentDeleteEvent($contentId, $content->getSiteId()));

Line exceeds 120 characters; contains 125 characters
Open

        $newContent = $this->get('open_orchestra_backoffice.manager.content')->createNewLanguageContent($content, $language);

Line exceeds 120 characters; contains 128 characters
Open

        $contents = $this->get('open_orchestra_model.repository.content')->findNotDeletedSortByUpdatedAt($contentId, $language);

Line exceeds 120 characters; contains 128 characters
Open

        $this->get('open_orchestra_api.transformer_manager')->reverseTransform('content', $facade, array('source' => $content));

Line exceeds 120 characters; contains 122 characters
Open

        $contents = $this->get('open_orchestra_api.transformer_manager')->reverseTransform('content_collection', $facade);

Line exceeds 120 characters; contains 122 characters
Open

        $contents = $this->get('open_orchestra_api.transformer_manager')->reverseTransform('content_collection', $facade);

Line exceeds 120 characters; contains 130 characters
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {

Line exceeds 120 characters; contains 135 characters
Open

                $this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::DELETE, $content) &&

Line exceeds 120 characters; contains 134 characters
Open

            if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {

Line exceeds 120 characters; contains 130 characters
Open

        if (!$this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::READ, $content)) {

Expected 0 spaces after opening bracket; newline found
Open

            if (

There are no issues that match your filters.

Category
Status