AOEpeople/StackFormation

View on GitHub
src/AwsInspector/Command/CloudwatchLogs/SetRetentionCommand.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

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

protected function execute(InputInterface $input, OutputInterface $output)
{
// TODO: refactor this to use \AwsInspector\Model\CloudWatchLogs\Repository
 
$days = $input->getArgument('days');
Severity: Minor
Found in src/AwsInspector/Command/CloudwatchLogs/SetRetentionCommand.php - About 1 hr to fix

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

    protected function execute(InputInterface $input, OutputInterface $output)
    {
    // TODO: refactor this to use \AwsInspector\Model\CloudWatchLogs\Repository
     
    $days = $input->getArgument('days');
    Severity: Minor
    Found in src/AwsInspector/Command/CloudwatchLogs/SetRetentionCommand.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status