codeclimate/php-test-reporter

View on GitHub
src/ConsoleCommands/SelfUpdateCommand.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Method execute has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

protected function execute(InputInterface $input, OutputInterface $output)
{
$logger = new ConsoleLogger($output);
$updater = new Updater(null, false, Updater::STRATEGY_GITHUB);
 
 
Severity: Minor
Found in src/ConsoleCommands/SelfUpdateCommand.php - About 1 hr to fix

    Function execute has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    protected function execute(InputInterface $input, OutputInterface $output)
    {
    $logger = new ConsoleLogger($output);
    $updater = new Updater(null, false, Updater::STRATEGY_GITHUB);
     
     
    Severity: Minor
    Found in src/ConsoleCommands/SelfUpdateCommand.php - About 25 mins to fix
    Category
    Status