AOEpeople/StackFormation

View on GitHub
src/AwsInspector/Ssh/Connection.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Function tunnel has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

public function tunnel($configuration)
{
$configurationData = explode(':', $configuration);
 
if (count($configurationData) == 4) {
Severity: Minor
Found in src/AwsInspector/Ssh/Connection.php - About 45 mins to fix

Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

public function __construct($username, $host, PrivateKey $privateKey = null, \AwsInspector\Model\Ec2\Instance $jumpHost = null, $multiplex=false)
Severity: Minor
Found in src/AwsInspector/Ssh/Connection.php - About 35 mins to fix
    Category
    Status