Method newAction
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
public function newAction(Request $request, $nodeId, $language, $version, $areaId, $position, $component)
- Create a ticketCreate a ticket
The class BlockController has a coupling between objects value of 15. Consider to reduce the number of dependencies under 13. Open
class BlockController extends AbstractAdminController
{
/**
* @param Request $request
* @param string $component
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
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
The method formAction has a boolean flag argument $read, which is a certain sign of a Single Responsibility Principle violation. Open
public function formAction(Request $request, $blockId, $read = false)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
BooleanArgumentFlag
Since: 1.4.0
A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.
Example
class Foo {
public function bar($flag = true) {
}
}
Source https://phpmd.org/rules/cleancode.html#booleanargumentflag
Missing class import via use statement (line '135', column '23'). Open
throw new \UnexpectedValueException();
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Call to method handleRequest
from undeclared class \Symfony\Component\Form\Form
Open
$form->handleRequest($request);
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
$block = $this->get('open_orchestra_backoffice.manager.block')->initializeBlock($component, $siteId, $language, false);
- Create a ticketCreate a ticket
- Exclude checks
Call to method getConfig
from undeclared class \Symfony\Component\Form\Form
Open
return $this->renderAdminForm($form, array(), null, $form->getConfig()->getAttribute('template'));
- Create a ticketCreate a ticket
- Exclude checks
Possibly zero references to use statement for classlike/namespace Config
(\Sensio\Bundle\FrameworkExtraBundle\Configuration)
Open
use Sensio\Bundle\FrameworkExtraBundle\Configuration as Config;
- Create a ticketCreate a ticket
- Exclude checks
Call to method handleRequest
from undeclared class \Symfony\Component\Form\Form
Open
$form->handleRequest($request);
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant ENTITY_TYPE
from undeclared class \OpenOrchestra\ModelInterface\Model\BlockInterface
Open
$this->denyAccessUnlessGranted(ContributionActionInterface::CREATE, BlockInterface::ENTITY_TYPE);
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
$node = $this->get('open_orchestra_model.repository.node')->findVersionNotDeleted($nodeId, $language, $siteId, $version);
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant HTTP_CREATED
from undeclared class \Symfony\Component\HttpFoundation\Response
Open
return new Response('', Response::HTTP_CREATED, array('Content-type' => 'text/html; charset=utf-8'));
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
$documentManager = $this->get('object_manager');
- Create a ticketCreate a ticket
- Exclude checks
Argument 2 (option)
is array{action:mixed,new_button:true}
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::createBlockForm()
takes string
defined at /code/BackofficeBundle/Controller/BlockController.php:183
Open
"action" => $this->generateUrl('open_orchestra_backoffice_shared_block_new', array(
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\HttpFoundation\Response
Open
$response = new Response(
- Create a ticketCreate a ticket
- Exclude checks
Argument 2 (option)
is array{action:mixed,delete_button:bool,disabled:mixed}
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::createBlockForm()
takes string
defined at /code/BackofficeBundle/Controller/BlockController.php:183
Open
"action" => $this->generateUrl('open_orchestra_backoffice_block_form', array(
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant POST_BLOCK_UPDATE
from undeclared class \OpenOrchestra\ModelInterface\BlockEvents
Open
$this->dispatchEvent(BlockEvents::POST_BLOCK_UPDATE, new BlockEvent($block));
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \OpenOrchestra\ModelInterface\Event\BlockEvent
Open
$this->dispatchEvent(BlockEvents::POST_BLOCK_CREATE, new BlockEvent($block));
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
$siteId = $this->get('open_orchestra_backoffice.context_backoffice_manager')->getSiteId();
- Create a ticketCreate a ticket
- Exclude checks
Argument 2 (event)
is \OpenOrchestra\ModelInterface\Event\BlockEvent
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::dispatchEvent()
takes \Symfony\Component\EventDispatcher\Event
defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:81
Open
$this->dispatchEvent(BlockEvents::POST_BLOCK_CREATE, new BlockEvent($block));
- Create a ticketCreate a ticket
- Exclude checks
Call to method isValid
from undeclared class \Symfony\Component\Form\Form
Open
if ('PATCH' !== $request->getMethod() && $form->isValid()) {
- Create a ticketCreate a ticket
- Exclude checks
Parameter $request
has undeclared type \Symfony\Component\HttpFoundation\Request
Open
public function newSharedBlockAction(Request $request, $component, $language)
- Create a ticketCreate a ticket
- Exclude checks
@throws type of newSharedBlockAction
has undeclared type \OpenOrchestra\BaseApi\Exceptions\HttpException\ClientAccessDeniedHttpException
Open
public function newSharedBlockAction(Request $request, $component, $language)
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::denyAccessUnlessGranted
Open
$this->denyAccessUnlessGranted(ContributionActionInterface::CREATE, BlockInterface::ENTITY_TYPE);
- Create a ticketCreate a ticket
- Exclude checks
@throws annotation of newAction
has suspicious class type \OpenOrchestra\ApiBundle\Exceptions\HttpException\NodeNotFoundHttpException,
which does not extend Error/Exception Open
public function newAction(Request $request, $nodeId, $language, $version, $areaId, $position, $component)
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
$siteId = $this->get('open_orchestra_backoffice.context_backoffice_manager')->getSiteId();
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
$message = $this->get('translator')->trans('open_orchestra_backoffice.form.block.success');
- Create a ticketCreate a ticket
- Exclude checks
Argument 1 (form)
is \Symfony\Component\Form\Form
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::handleForm()
takes \Symfony\Component\Form\FormInterface
defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:29
Open
if ('PATCH' !== $request->getMethod() && $this->handleForm($form, $message)) {
- Create a ticketCreate a ticket
- Exclude checks
Call to method getConfig
from undeclared class \Symfony\Component\Form\Form
Open
return $this->renderAdminForm($form, array(), null, $form->getConfig()->getAttribute('template'));
- Create a ticketCreate a ticket
- Exclude checks
Argument 2 (event)
is \OpenOrchestra\ModelInterface\Event\BlockNodeEvent
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::dispatchEvent()
takes \Symfony\Component\EventDispatcher\Event
defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:81
Open
$this->dispatchEvent(BlockNodeEvents::ADD_BLOCK_TO_NODE, new BlockNodeEvent($node, $block));
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
$block = $this->get('open_orchestra_backoffice.manager.block')->initializeBlock($component, $siteId, $language, true);
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::generateUrl
Open
"action" => $this->generateUrl('open_orchestra_backoffice_block_new_in_node', array(
- Create a ticketCreate a ticket
- Exclude checks
Checking instanceof against undeclared class \OpenOrchestra\ModelInterface\Model\BlockInterface
Open
if (!$block instanceof BlockInterface) {
- Create a ticketCreate a ticket
- Exclude checks
Argument 2 (event)
is \OpenOrchestra\ModelInterface\Event\BlockEvent
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::dispatchEvent()
takes \Symfony\Component\EventDispatcher\Event
defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:81
Open
$this->dispatchEvent(BlockEvents::POST_BLOCK_UPDATE, new BlockEvent($block));
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \OpenOrchestra\ModelInterface\Event\BlockEvent
Open
$this->dispatchEvent(BlockEvents::POST_BLOCK_UPDATE, new BlockEvent($block));
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::generateUrl
Open
"action" => $this->generateUrl('open_orchestra_backoffice_shared_block_new', array(
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
$message = $this->get('translator')->trans('open_orchestra_backoffice.form.block.creation');
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::denyAccessUnlessGranted
Open
$this->denyAccessUnlessGranted(ContributionActionInterface::EDIT, $block);
- Create a ticketCreate a ticket
- Exclude checks
Argument 2 (event)
is \OpenOrchestra\ModelInterface\Event\BlockEvent
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::dispatchEvent()
takes \Symfony\Component\EventDispatcher\Event
defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:81
Open
$this->dispatchEvent(BlockEvents::POST_BLOCK_CREATE, new BlockEvent($block));
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant ADD_BLOCK_TO_NODE
from undeclared class \OpenOrchestra\ModelInterface\BlockNodeEvents
Open
$this->dispatchEvent(BlockNodeEvents::ADD_BLOCK_TO_NODE, new BlockNodeEvent($node, $block));
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \OpenOrchestra\ModelInterface\Event\BlockNodeEvent
Open
$this->dispatchEvent(BlockNodeEvents::ADD_BLOCK_TO_NODE, new BlockNodeEvent($node, $block));
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
$formType = $this->get('open_orchestra_backoffice.generate_form_manager')->getFormType($block);
- Create a ticketCreate a ticket
- Exclude checks
Call to method getMethod
from undeclared class \Symfony\Component\HttpFoundation\Request
Open
if ('PATCH' !== $request->getMethod() && $form->isValid()) {
- Create a ticketCreate a ticket
- Exclude checks
Argument 2 (option)
is array{action:mixed}
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::createBlockForm()
takes string
defined at /code/BackofficeBundle/Controller/BlockController.php:183
Open
"action" => $this->generateUrl('open_orchestra_backoffice_block_new_in_node', array(
- Create a ticketCreate a ticket
- Exclude checks
Call to method getMethod
from undeclared class \Symfony\Component\HttpFoundation\Request
Open
if ('PATCH' !== $request->getMethod() && $form->isValid()) {
- Create a ticketCreate a ticket
- Exclude checks
Parameter $request
has undeclared type \Symfony\Component\HttpFoundation\Request
Open
public function formAction(Request $request, $blockId, $read = false)
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant POST_BLOCK_CREATE
from undeclared class \OpenOrchestra\ModelInterface\BlockEvents
Open
$this->dispatchEvent(BlockEvents::POST_BLOCK_CREATE, new BlockEvent($block));
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant HTTP_CREATED
from undeclared class \Symfony\Component\HttpFoundation\Response
Open
Response::HTTP_CREATED,
- Create a ticketCreate a ticket
- Exclude checks
Argument 1 (form)
is \Symfony\Component\Form\Form
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::renderAdminForm()
takes \Symfony\Component\Form\FormInterface
defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:58
Open
return $this->renderAdminForm($form, array(), null, $form->getConfig()->getAttribute('template'));
- Create a ticketCreate a ticket
- Exclude checks
Parameter $request
has undeclared type \Symfony\Component\HttpFoundation\Request
Open
public function newAction(Request $request, $nodeId, $language, $version, $areaId, $position, $component)
- Create a ticketCreate a ticket
- Exclude checks
Return type of newAction()
is undeclared type \Symfony\Component\HttpFoundation\Response
Open
public function newAction(Request $request, $nodeId, $language, $version, $areaId, $position, $component)
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant ENTITY_TYPE
from undeclared class \OpenOrchestra\ModelInterface\Model\BlockInterface
Open
$this->denyAccessUnlessGranted(ContributionActionInterface::CREATE, BlockInterface::ENTITY_TYPE);
- Create a ticketCreate a ticket
- Exclude checks
Checking instanceof against undeclared class \OpenOrchestra\ModelInterface\Model\NodeInterface
Open
if (!$node instanceof NodeInterface) {
- Create a ticketCreate a ticket
- Exclude checks
Call to method getMethod
from undeclared class \Symfony\Component\HttpFoundation\Request
Open
if ('PATCH' !== $request->getMethod() && $this->handleForm($form, $message)) {
- Create a ticketCreate a ticket
- Exclude checks
Argument 1 (form)
is \Symfony\Component\Form\Form
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::renderAdminForm()
takes \Symfony\Component\Form\FormInterface
defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:58
Open
return $this->renderAdminForm($form, array(), null, $form->getConfig()->getAttribute('template'));
- Create a ticketCreate a ticket
- Exclude checks
Parameter $request
has undeclared type \Symfony\Component\HttpFoundation\Request
Open
protected function createBlockForm(Request $request, $option, BlockInterface $block)
- Create a ticketCreate a ticket
- Exclude checks
Return type of newSharedBlockAction()
is undeclared type \Symfony\Component\HttpFoundation\Response
Open
public function newSharedBlockAction(Request $request, $component, $language)
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \OpenOrchestra\ModelInterface\Event\BlockEvent
Open
$this->dispatchEvent(BlockEvents::POST_BLOCK_CREATE, new BlockEvent($block));
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::denyAccessUnlessGranted
Open
$this->denyAccessUnlessGranted(ContributionActionInterface::CREATE, BlockInterface::ENTITY_TYPE);
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
"delete_button" => $this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::DELETE, $block) && !$read,
- Create a ticketCreate a ticket
- Exclude checks
Parameter $node
has undeclared type \OpenOrchestra\ModelInterface\Model\NodeInterface
Open
protected function addBlockToNode(BlockInterface $block, NodeInterface $node, $areaId, $position)
- Create a ticketCreate a ticket
- Exclude checks
Call to method getArea
from undeclared class \OpenOrchestra\ModelInterface\Model\NodeInterface
Open
$area = $node->getArea($areaId);
- Create a ticketCreate a ticket
- Exclude checks
Return type of createBlockForm()
is undeclared type \Symfony\Component\Form\Form
Open
protected function createBlockForm(Request $request, $option, BlockInterface $block)
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
$documentManager = $this->get('object_manager');
- Create a ticketCreate a ticket
- Exclude checks
Call to method getConfig
from undeclared class \Symfony\Component\Form\Form
Open
return $this->renderAdminForm($form, array(), null, $form->getConfig()->getAttribute('template'));
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::get
Open
$block = $this->get('open_orchestra_model.repository.block')->findById($blockId);
- Create a ticketCreate a ticket
- Exclude checks
Parameter $block
has undeclared type \OpenOrchestra\ModelInterface\Model\BlockInterface
Open
protected function addBlockToNode(BlockInterface $block, NodeInterface $node, $areaId, $position)
- Create a ticketCreate a ticket
- Exclude checks
Parameter $block
has undeclared type \OpenOrchestra\ModelInterface\Model\BlockInterface
Open
protected function createBlockForm(Request $request, $option, BlockInterface $block)
- Create a ticketCreate a ticket
- Exclude checks
Call to method getMethod
from undeclared class \Symfony\Component\HttpFoundation\Request
Open
if ("PATCH" === $request->getMethod()) {
- Create a ticketCreate a ticket
- Exclude checks
Possibly zero references to use statement for classlike/namespace ContributionRoleInterface
(\OpenOrchestra\Backoffice\Security\ContributionRoleInterface)
Open
use OpenOrchestra\Backoffice\Security\ContributionRoleInterface;
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::denyAccessUnlessGranted
Open
$this->denyAccessUnlessGranted(ContributionActionInterface::EDIT, $node);
- Create a ticketCreate a ticket
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\HttpFoundation\Response
Open
return new Response('', Response::HTTP_CREATED, array('Content-type' => 'text/html; charset=utf-8'));
- Create a ticketCreate a ticket
- Exclude checks
Argument 1 (form)
is \Symfony\Component\Form\Form
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::renderAdminForm()
takes \Symfony\Component\Form\FormInterface
defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:58
Open
return $this->renderAdminForm($form, array(), null, $form->getConfig()->getAttribute('template'));
- Create a ticketCreate a ticket
- Exclude checks
Return type of formAction()
is undeclared type \Symfony\Component\HttpFoundation\Response
Open
public function formAction(Request $request, $blockId, $read = false)
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \OpenOrchestra\BackofficeBundle\Controller\BlockController::generateUrl
Open
"action" => $this->generateUrl('open_orchestra_backoffice_block_form', array(
- Create a ticketCreate a ticket
- Exclude checks
Reference to constant POST_BLOCK_CREATE
from undeclared class \OpenOrchestra\ModelInterface\BlockEvents
Open
$this->dispatchEvent(BlockEvents::POST_BLOCK_CREATE, new BlockEvent($block));
- Create a ticketCreate a ticket
- Exclude checks
When appending to a value of type string,
found an array access index of type 'validation_groups',
but expected the index to be of type int
Open
$option["validation_groups"] = false;
- Create a ticketCreate a ticket
- Exclude checks
Call to method isValid
from undeclared class \Symfony\Component\Form\Form
Open
if ('PATCH' !== $request->getMethod() && $form->isValid()) {
- Create a ticketCreate a ticket
- Exclude checks
Call to method handleRequest
from undeclared class \Symfony\Component\Form\Form
Open
$form->handleRequest($request);
- Create a ticketCreate a ticket
- Exclude checks
Argument 2 (data)
is \OpenOrchestra\ModelInterface\Model\BlockInterface
but \OpenOrchestra\BackofficeBundle\Controller\BlockController::createForm()
takes null
defined at /code/BackofficeBundle/Controller/AbstractAdminController.php:94
Open
return $this->createForm($formType, $block, $option);
- Create a ticketCreate a ticket
- Exclude checks
Similar blocks of code found in 2 locations. Consider refactoring. Open
if ('PATCH' !== $request->getMethod() && $form->isValid()) {
$documentManager = $this->get('object_manager');
$documentManager->persist($block);
$documentManager->flush();
$message = $this->get('translator')->trans('open_orchestra_backoffice.form.block.creation');
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 110.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Line exceeds 120 characters; contains 133 characters Open
$node = $this->get('open_orchestra_model.repository.node')->findVersionNotDeleted($nodeId, $language, $siteId, $version);
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 127 characters Open
$block = $this->get('open_orchestra_backoffice.manager.block')->initializeBlock($component, $siteId, $language, false);
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 156 characters Open
"delete_button" => $this->get('open_orchestra_backoffice.business_rules_manager')->isGranted(BusinessActionInterface::DELETE, $block) && !$read,
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 126 characters Open
$block = $this->get('open_orchestra_backoffice.manager.block')->initializeBlock($component, $siteId, $language, true);
- Create a ticketCreate a ticket
- Exclude checks