open-orchestra/open-orchestra-model-bundle

View on GitHub
ModelBundle/Repository/ContentRepository.php

Summary

Maintainability
D
1 day
Test Coverage

File ContentRepository.php has 377 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace OpenOrchestra\ModelBundle\Repository;

use Doctrine\Common\Collections\Collection;
Severity: Minor
Found in ModelBundle/Repository/ContentRepository.php - About 5 hrs to fix

ContentRepository has 37 functions (exceeds 20 allowed). Consider refactoring.
Open

class ContentRepository extends AbstractAggregateRepository implements FieldAutoGenerableRepositoryInterface, ContentRepositoryInterface, KeywordableTraitInterface
{
    use KeywordableTrait;
    use UseTrackableTrait;
    use FilterTrait;
Severity: Minor
Found in ModelBundle/Repository/ContentRepository.php - About 4 hrs to fix

Method findByHistoryAndSiteId has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

        $id,
        $siteId,
        array $eventTypes = null,
        $published = null,
        $limit = null,
Severity: Major
Found in ModelBundle/Repository/ContentRepository.php - About 50 mins to fix

Method countInContextByContentTypeSiteAndLanguage has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    protected function countInContextByContentTypeSiteAndLanguage($contentType, $siteId, $language, PaginateFinderConfiguration $configuration = null, array $searchTypes = array())
Severity: Minor
Found in ModelBundle/Repository/ContentRepository.php - About 35 mins to fix

Method countWithFilterAndContentTypeSiteAndLanguage has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function countWithFilterAndContentTypeSiteAndLanguage(PaginateFinderConfiguration $configuration, $contentType, $siteId, $language, array $searchTypes = array())
Severity: Minor
Found in ModelBundle/Repository/ContentRepository.php - About 35 mins to fix

Method findByContentTypeAndCondition has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function findByContentTypeAndCondition($language, $contentType = '', $choiceType = self::CHOICE_AND, $condition = null, $siteId = null)
Severity: Minor
Found in ModelBundle/Repository/ContentRepository.php - About 35 mins to fix

Method findForPaginateFilterByContentTypeSiteAndLanguage has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function findForPaginateFilterByContentTypeSiteAndLanguage(PaginateFinderConfiguration $configuration, $contentType, $siteId, $language, array $searchTypes = array())
Severity: Minor
Found in ModelBundle/Repository/ContentRepository.php - About 35 mins to fix

There are no issues that match your filters.

Category
Status