Showing 9 of 9 total issues
Method postBind
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function postBind(array $configuration)
{
$this->container->instance('config', $configuration);
// Setup AnalysisException ComplexityComputing
Avoid too many return
statements within this method. Open
Open
return new Parser($container['lexer']);
Avoid too many return
statements within this method. Open
Open
return new Bootstrapper($container);
Avoid too many return
statements within this method. Open
Open
return new AnalyzerService(
$container['analyzer'],
$container['code-scanner'],
$container[FeedbackInterface::class],
$container['report-service']
Avoid too many return
statements within this method. Open
Open
return new InspectCommand(
$container['analyzer-service']
);
Avoid too many return
statements within this method. Open
Open
return new Lexer();
Avoid too many return
statements within this method. Open
Open
return new ReportGenerator($container['filesystem']);
Avoid too many return
statements within this method. Open
Open
return new ComplexityComputer(new CCNChecker());
Avoid too many return
statements within this method. Open
Open
return new ReportService($container['report-generator']);