AJenbo/php-tracer-weaver

View on GitHub
src/PHPWeaver/Command/TraceCommand.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

    protected function execute(InputInterface $input, OutputInterface $output): int
    {
        $tracefile = $input->getOption('tracefile');
        if (!is_string($tracefile)) {
            return self::RETURN_CODE_ERROR;
Severity: Minor
Found in src/PHPWeaver/Command/TraceCommand.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

            return self::RETURN_CODE_OK;
    Severity: Major
    Found in src/PHPWeaver/Command/TraceCommand.php - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status