AOEpeople/StackFormation

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

Summary

Maintainability
A
55 mins
Test Coverage

Showing 1 of 1 total issue

Function __construct has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

protected function __construct($privateKeyFile)
{
if (is_file($privateKeyFile)) {
$this->privateKeyFile = $privateKeyFile;
} else {
Severity: Minor
Found in src/AwsInspector/Ssh/PrivateKey.php - About 55 mins to fix
Category
Status