FeatureBrowser/FeatureBrowser

View on GitHub
src/FeatureBrowser/Cli/GenerateCommand.php

Summary

Maintainability
A
3 hrs
Test Coverage

File GenerateCommand.php has 254 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace FeatureBrowser\FeatureBrowser\Cli;

use Behat\Gherkin\Keywords\ArrayKeywords;
Severity: Minor
Found in src/FeatureBrowser/Cli/GenerateCommand.php - About 2 hrs to fix

    Method renderViews has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function renderViews()
        {
            $viewsDirectory       = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . 'views';
            $macrosDirectory      = $viewsDirectory . DIRECTORY_SEPARATOR . 'macros';
            $templatesDirectories = [$viewsDirectory, $macrosDirectory];
    Severity: Minor
    Found in src/FeatureBrowser/Cli/GenerateCommand.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status