AOEpeople/StackFormation

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

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 2 of 2 total issues

Method execute has 46 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
 
$groupPattern = $input->getArgument('group');
Severity: Minor
Found in src/AwsInspector/Command/CloudwatchLogs/AddLambdaTriggerCommand.php - About 1 hr to fix

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

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

    There are no issues that match your filters.

    Category
    Status