jeremeamia/super_closure

View on GitHub
src/Analyzer/Visitor/MagicConstantVisitor.php

Summary

Maintainability
A
2 hrs
Test Coverage

Avoid too many return statements within this method.
Open

                return new StringNode($this->location['trait'] ?: '');
Severity: Major
Found in src/Analyzer/Visitor/MagicConstantVisitor.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return new NumberNode($node->getAttribute('startLine') ?: 0);
    Severity: Major
    Found in src/Analyzer/Visitor/MagicConstantVisitor.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return new StringNode($this->location['method'] ?: '');
      Severity: Major
      Found in src/Analyzer/Visitor/MagicConstantVisitor.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return new StringNode($this->location['namespace'] ?: '');
        Severity: Major
        Found in src/Analyzer/Visitor/MagicConstantVisitor.php - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status