flavioheleno/php-ext.com

View on GitHub
src/Console/Maintenance/ClearDanglingCommand.php

Summary

Maintainability
B
4 hrs
Test Coverage
F
0%

Showing 3 of 3 total issues

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

protected function execute(InputInterface $input, OutputInterface $output): int {
try {
// i/o styling
$io = new SymfonyStyle($input, $output);
$io->text(
Severity: Major
Found in src/Console/Maintenance/ClearDanglingCommand.php - About 3 hrs to fix

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

    protected function execute(InputInterface $input, OutputInterface $output): int {
    try {
    // i/o styling
    $io = new SymfonyStyle($input, $output);
    $io->text(
    Severity: Minor
    Found in src/Console/Maintenance/ClearDanglingCommand.php - About 25 mins to fix

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

    try {
    // i/o styling
    $io = new SymfonyStyle($input, $output);
    $io->text(
    sprintf(
    Severity: Major
    Found in src/Console/Maintenance/ClearDanglingCommand.php and 3 other locations - About 40 mins to fix
    src/Console/Build/AddCommand.php on lines 45..154
    src/Console/Build/BuilderCommand.php on lines 98..550
    src/Console/Build/StatusCommand.php on lines 38..108

    There are no issues that match your filters.

    Category
    Status