src/AwsInspector/Model/Ec2/Instance.php
Showing 2 of 2 total issues
Function getDefaultUsername
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
public function getDefaultUsername() { if (is_null($this->username)) { if ($user = $this->getInspectorConfiguration('user')) { $this->username = $user;
- Read upRead up
Function getInspectorConfiguration
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function getInspectorConfiguration($type) { $configString = $this->getTag('inspector') ? $this->getTag('inspector') : $this->getTag('inspector:jump'); if (!$configString) { return false;
- Read upRead up