AOEpeople/StackFormation

View on GitHub
src/AwsInspector/Model/Ec2/Instance.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

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

public function getDefaultUsername()
{
if (is_null($this->username)) {
if ($user = $this->getInspectorConfiguration('user')) {
$this->username = $user;
Severity: Minor
Found in src/AwsInspector/Model/Ec2/Instance.php - About 55 mins to fix

Function getInspectorConfiguration has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

protected function getInspectorConfiguration($type)
{
$configString = $this->getTag('inspector') ? $this->getTag('inspector') : $this->getTag('inspector:jump');
if (!$configString) {
return false;
Severity: Minor
Found in src/AwsInspector/Model/Ec2/Instance.php - About 25 mins to fix

There are no issues that match your filters.

Category
Status