FeatureBrowser/FeatureBrowser

View on GitHub

Showing 2 of 2 total issues

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
      Severity
      Category
      Status
      Source
      Language