open-orchestra/open-orchestra-model-bundle

View on GitHub
ModelBundle/Repository/SiteRepository.php

Summary

Maintainability
A
1 hr
Test Coverage

Method findByAliasDomain has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function findByAliasDomain($domain)
    {
        $database = $this->dm->getDocumentDatabase($this->documentName);
        $collectionName = $this->dm->getClassMetadata($this->documentName)->collection;

Severity: Minor
Found in ModelBundle/Repository/SiteRepository.php - About 1 hr to fix

There are no issues that match your filters.

Category
Status