open-orchestra/open-orchestra-cms-bundle

View on GitHub

Showing 136 of 14,363 total issues

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    public function buildView(FormView $view, FormInterface $form, array $options)
    {
        parent::buildView($view, $form, $options);
        $view->vars['delete_button'] = $options['delete_button'];
        $view->vars['enable_delete_button'] = $options['enable_delete_button'];
Severity: Major
Found in GroupBundle/Form/Type/GroupType.php and 2 other locations - About 1 hr to fix
Backoffice/Form/Type/ContentType.php on lines 90..97
Backoffice/Form/Type/ContentTypeType.php on lines 189..196

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 106.

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

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    public function buildView(FormView $view, FormInterface $form, array $options)
    {
        parent::buildView($view, $form, $options);
        $view->vars['delete_button'] = $options['delete_button'];
        $view->vars['enable_delete_button'] = $options['enable_delete_button'];
Severity: Major
Found in Backoffice/Form/Type/ContentTypeType.php and 2 other locations - About 1 hr to fix
Backoffice/Form/Type/ContentType.php on lines 90..97
GroupBundle/Form/Type/GroupType.php on lines 153..160

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 106.

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

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    public function testSetCurrentSite($site)
    {
        $this->contextManager->setCurrentSite($site['siteId'], $site['name'], $site['defaultLanguage'], $site['languages']);

        Phake::verify($this->session)->set(ContextManager::KEY_SITE, array(
Severity: Major
Found in Backoffice/Tests/Context/ContextManagerTest.php and 1 other location - About 1 hr to fix
Backoffice/Tests/Context/ContextBackOfficeManagerTest.php on lines 186..196

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 105.

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

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    public function testSetSite($site)
    {
        $this->contextManager->setSite($site['siteId'], $site['name'], $site['defaultLanguage'], $site['languages']);

        Phake::verify($this->session)->set(ContextBackOfficeInterface::KEY_SITE, array(
Severity: Major
Found in Backoffice/Tests/Context/ContextBackOfficeManagerTest.php and 1 other location - About 1 hr to fix
Backoffice/Tests/Context/ContextManagerTest.php on lines 193..203

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 105.

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

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    public function testBuildView()
    {
        $view = Phake::mock('Symfony\Component\Form\FormView');
        $form = Phake::mock('Symfony\Component\Form\Form');
        $options = array(
Severity: Major
Found in Workflow/Tests/Form/Type/WorkflowProfileTypeTest.php and 2 other locations - About 1 hr to fix
Backoffice/Tests/Form/Type/BlockTypeTest.php on lines 75..86
Backoffice/Tests/Form/Type/SiteTypeTest.php on lines 153..164

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 103.

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

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    public function testBuildView()
    {
        $view = Phake::mock('Symfony\Component\Form\FormView');
        $form = Phake::mock('Symfony\Component\Form\Form');
        $options = array(
Severity: Major
Found in Backoffice/Tests/Form/Type/BlockTypeTest.php and 2 other locations - About 1 hr to fix
Backoffice/Tests/Form/Type/SiteTypeTest.php on lines 153..164
Workflow/Tests/Form/Type/WorkflowProfileTypeTest.php on lines 74..85

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 103.

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

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    public function testBuildView()
    {
        $view = Phake::mock('Symfony\Component\Form\FormView');
        $form = Phake::mock('Symfony\Component\Form\Form');
        $options = array(
Severity: Major
Found in Backoffice/Tests/Form/Type/SiteTypeTest.php and 2 other locations - About 1 hr to fix
Backoffice/Tests/Form/Type/BlockTypeTest.php on lines 75..86
Workflow/Tests/Form/Type/WorkflowProfileTypeTest.php on lines 74..85

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 103.

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

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

<?php

namespace OpenOrchestra\ApiBundle\Exceptions\HttpException;

use OpenOrchestra\BaseApi\Exceptions\HttpException\ApiException;
ApiBundle/Exceptions/HttpException/AreaNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/BlockNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentTypeNotAllowedException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotEditableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotPublishableException.php on lines 1..29
WorkflowAdminBundle/Exceptions/HttpException/StatusNotDeletableException.php on lines 1..29

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 100.

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

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    public function provideSupport()
    {
        $trashItemNode = Phake::mock('OpenOrchestra\ModelInterface\Model\TrashItemInterface');
        Phake::when($trashItemNode)->getType()->thenReturn('node');

Backoffice/Tests/TrashcanEntity/TrashcanNodeStrategyTest.php on lines 59..71

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 100.

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

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php

namespace OpenOrchestra\GroupBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
Severity: Minor
Found in GroupBundle/DependencyInjection/Configuration.php and 1 other location - About 1 hr to fix
LogBundle/DependencyInjection/Configuration.php on lines 1..33

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 100.

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

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

<?php

namespace OpenOrchestra\ApiBundle\Exceptions\HttpException;

use OpenOrchestra\BaseApi\Exceptions\HttpException\ApiException;
ApiBundle/Exceptions/HttpException/AreaNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/BlockNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentTypeNotAllowedException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotEditableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/StatusChangeNotGrantedHttpException.php on lines 1..29
WorkflowAdminBundle/Exceptions/HttpException/StatusNotDeletableException.php on lines 1..29

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 100.

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

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php

namespace OpenOrchestra\LogBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
Severity: Minor
Found in LogBundle/DependencyInjection/Configuration.php and 1 other location - About 1 hr to fix
GroupBundle/DependencyInjection/Configuration.php on lines 1..33

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 100.

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

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    public function provideSupport()
    {
        $trashItemNode = Phake::mock('OpenOrchestra\ModelInterface\Model\TrashItemInterface');
        Phake::when($trashItemNode)->getType()->thenReturn('node');

Backoffice/Tests/TrashcanEntity/TrashcanContentStrategyTest.php on lines 63..75

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 100.

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

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

<?php

namespace OpenOrchestra\ApiBundle\Exceptions\HttpException;

use OpenOrchestra\BaseApi\Exceptions\HttpException\ApiException;
ApiBundle/Exceptions/HttpException/AreaNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/BlockNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentTypeNotAllowedException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotEditableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotPublishableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/StatusChangeNotGrantedHttpException.php on lines 1..29
WorkflowAdminBundle/Exceptions/HttpException/StatusNotDeletableException.php on lines 1..29

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 100.

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

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

<?php

namespace OpenOrchestra\ApiBundle\Exceptions\HttpException;

use OpenOrchestra\BaseApi\Exceptions\HttpException\ApiException;
ApiBundle/Exceptions/HttpException/AreaNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/BlockNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentTypeNotAllowedException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotEditableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotPublishableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/StatusChangeNotGrantedHttpException.php on lines 1..29
WorkflowAdminBundle/Exceptions/HttpException/StatusNotDeletableException.php on lines 1..29

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 100.

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

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

<?php

namespace OpenOrchestra\ApiBundle\Exceptions\HttpException;

use OpenOrchestra\BaseApi\Exceptions\HttpException\ApiException;
ApiBundle/Exceptions/HttpException/BlockNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentTypeNotAllowedException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotEditableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotPublishableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/StatusChangeNotGrantedHttpException.php on lines 1..29
WorkflowAdminBundle/Exceptions/HttpException/StatusNotDeletableException.php on lines 1..29

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 100.

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

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

<?php

namespace OpenOrchestra\ApiBundle\Exceptions\HttpException;

use OpenOrchestra\BaseApi\Exceptions\HttpException\ApiException;
ApiBundle/Exceptions/HttpException/AreaNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/BlockNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentTypeNotAllowedException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotPublishableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/StatusChangeNotGrantedHttpException.php on lines 1..29
WorkflowAdminBundle/Exceptions/HttpException/StatusNotDeletableException.php on lines 1..29

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 100.

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

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

<?php

namespace OpenOrchestra\ApiBundle\Exceptions\HttpException;

use OpenOrchestra\BaseApi\Exceptions\HttpException\ApiException;
ApiBundle/Exceptions/HttpException/AreaNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/BlockNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentTypeNotAllowedException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotEditableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotPublishableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/StatusChangeNotGrantedHttpException.php on lines 1..29
WorkflowAdminBundle/Exceptions/HttpException/StatusNotDeletableException.php on lines 1..29

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 100.

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

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

<?php

namespace OpenOrchestra\ApiBundle\Exceptions\HttpException;

use OpenOrchestra\BaseApi\Exceptions\HttpException\ApiException;
ApiBundle/Exceptions/HttpException/AreaNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/BlockNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentTypeNotAllowedException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotEditableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotPublishableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/StatusChangeNotGrantedHttpException.php on lines 1..29
WorkflowAdminBundle/Exceptions/HttpException/StatusNotDeletableException.php on lines 1..29

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 100.

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

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

<?php

namespace OpenOrchestra\WorkflowAdminBundle\Exceptions\HttpException;

use OpenOrchestra\BaseApi\Exceptions\HttpException\ApiException;
ApiBundle/Exceptions/HttpException/AreaNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/BlockNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/ContentTypeNotAllowedException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotDeletableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotEditableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotFoundHttpException.php on lines 1..29
ApiBundle/Exceptions/HttpException/NodeNotPublishableException.php on lines 1..29
ApiBundle/Exceptions/HttpException/StatusChangeNotGrantedHttpException.php on lines 1..29

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 100.

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

Further Reading

Severity
Category
Status
Source
Language