projek-xyz/slim-framework

View on GitHub
src/Console.php

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 3 of 3 total issues

Method listen has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function listen(array $argv = [])
{
$this->climate->description(config('app.description'));
$this->climate->arguments->add([
'help' => [
Severity: Minor
Found in src/Console.php - About 1 hr to fix

    Method execute has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    protected function execute(Console\Commands $command, $args)
    {
    $this->climate->arguments->description($command->description());
     
    foreach ($command->arguments() as $name => $options) {
    Severity: Minor
    Found in src/Console.php - About 1 hr to fix

      Function execute has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      protected function execute(Console\Commands $command, $args)
      {
      $this->climate->arguments->description($command->description());
       
      foreach ($command->arguments() as $name => $options) {
      Severity: Minor
      Found in src/Console.php - About 35 mins to fix
      Category
      Status