open-orchestra/open-orchestra-model-bundle

View on GitHub
ModelBundle/DataFixtures/MongoDB/LoadContentTypeData.php

Summary

Maintainability
B
5 hrs
Test Coverage

Method generateContentTypeCustomer has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function generateContentTypeCustomer()
    {
        $maxLengthOption = $this->generateOption('max_length', 25);
        $required = $this->generateOption('required', true);

Severity: Minor
Found in ModelBundle/DataFixtures/MongoDB/LoadContentTypeData.php - About 1 hr to fix

Method generateContentTypeNews has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function generateContentTypeNews()
    {
        $maxLengthOption = $this->generateOption('max_length', 25);
        $required = $this->generateOption('required', true);
        $dateWidgetOption = $this->generateOption('widget', 'single_text');
Severity: Minor
Found in ModelBundle/DataFixtures/MongoDB/LoadContentTypeData.php - About 1 hr to fix

Method generateContentTypeCar has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function generateContentTypeCar()
    {
        $maxLengthOption = $this->generateOption('max_length', 25);

        $required = $this->generateOption('required', true);
Severity: Minor
Found in ModelBundle/DataFixtures/MongoDB/LoadContentTypeData.php - About 1 hr to fix

There are no issues that match your filters.

Category
Status