Showing 318 of 14,363 total issues
Method buildForm
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('name', 'text', array(
'label' => 'open_orchestra_workflow_admin.form.status.name',
- Create a ticketCreate a ticket
Method getNotSupportedSubjects
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getNotSupportedSubjects()
{
$node = $this->createPhakeNode();
$trashItem = $this->createPhakeTrashItem();
$site = $this->createPhakeSite();
- Create a ticketCreate a ticket
Method buildForm
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function buildForm(FormBuilderInterface $builder, array $options)
{
$configuration = array();
$maxColumns = 0;
- Create a ticketCreate a ticket
Method onPreSetData
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function onPreSetData(FormEvent $event)
{
$form = $event->getForm();
$data = $event->getData();
$disabled = null !== $data->getSiteId();
- Create a ticketCreate a ticket
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let content = this._collection.first();
if (typeof content === 'undefined') {
throw new ApplicationError('A content should have at least one version')
}
- Create a ticketCreate a ticket
Function getColumnsDefinition
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getColumnsDefinition() {
return [
{
name: 'name',
title: Translator.trans('open_orchestra_backoffice.table.node.title'),
- Create a ticketCreate a ticket
Function manageVersionsNode
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
manageVersionsNode(nodeId, language, page) {
if (null === page) {
page = 1
}
page = Number(page) - 1;
- Create a ticketCreate a ticket
Method updateBlockPositionAction
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateBlockPositionAction(Request $request, $nodeId, $language, $version, $siteId)
{
$node = $this->findOneNode($nodeId, $language, $siteId, $version);
if (!$node instanceof NodeInterface) {
throw new NodeNotFoundHttpException();
- Create a ticketCreate a ticket
Method testSubscribingMethods
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testSubscribingMethods()
{
$this->assertSame(
array(
array(
- Create a ticketCreate a ticket
Method generateRoutesForRedirection
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function generateRoutesForRedirection(RedirectionInterface $redirection, ReadSiteInterface $site)
{
$routes = array();
$node = $this->getNodeForRedirection($redirection);
- Create a ticketCreate a ticket
Method preSetData
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function preSetData(FormEvent $event)
{
$form = $event->getForm();
$data = $event->getData();
if (null === $data->getId()) {
- Create a ticketCreate a ticket
Method buildForm
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function buildForm(FormBuilderInterface $builder, array $options)
{
$newAttr = array();
if (!is_null($options['authorize_new'])) {
$newAttr['data-authorize-new'] = $options['authorize_new'];
- Create a ticketCreate a ticket
Method getNotSupportedSubjects
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getNotSupportedSubjects()
{
$node = $this->createPhakeNode();
$content = $this->createPhakeContent();
$trashItem = $this->createPhakeTrashItem();
- Create a ticketCreate a ticket
Method testAddWorkflowProfile
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testAddWorkflowProfile()
{
$event = Phake::mock('OpenOrchestra\GroupBundle\Event\GroupFormEvent');
$builder = Phake::mock('Symfony\Component\Form\FormBuilderInterface');
$group = Phake::mock('OpenOrchestra\Backoffice\Model\GroupInterface');
- Create a ticketCreate a ticket
Method testPreSetData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testPreSetData($siteId, $disabled)
{
$templateSetChoices = array(
'fakeTemplateSet' => 'fakeTemplateSet'
);
- Create a ticketCreate a ticket
Function _renderContentActionToolbar
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_renderContentActionToolbar($selector) {
this._displayLoader($selector);
let statuses = new Statuses();
let contentVersions = new Contents();
- Create a ticketCreate a ticket
Method testSubmitWithNoExistingData
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testSubmitWithNoExistingData()
{
$name = 'name';
$status = 'status';
$language = 'fr';
- Create a ticketCreate a ticket
Function _errorCallbackEdit
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_errorCallbackEdit(contentTypeId, contentId, language) {
let noCallback = () => {
let url = Backbone.history.generateUrl('listContent',{
contentTypeId: contentTypeId,
language: language
- Create a ticketCreate a ticket
Method generateRoutesForNode
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function generateRoutesForNode(NodeInterface $node, ReadSiteInterface $site, array $routePattern)
{
$routes = array();
if (!$node instanceof NodeInterface) {
- Create a ticketCreate a ticket
Method reverseTransform
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function reverseTransform($value)
{
$result = new ArrayCollection();
if (is_array($value)) {
foreach ($value as $type => $perimeters) {
- Create a ticketCreate a ticket