andreypostal/cli

View on GitHub
examples/Complete/MyService.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function oneHandler(Context $context): void
    {
        self::console('Just starting');

        // Recover the parameter by the key
Severity: Minor
Found in examples/Complete/MyService.php - About 1 hr to fix

    Avoid unused parameters such as '$context'.
    Wontfix

        public function otherHandler(Context $context): void
    Severity: Minor
    Found in examples/Complete/MyService.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    syntax error, unexpected ')'
    Open

            );
    Severity: Critical
    Found in examples/Complete/MyService.php by phan

    There are no issues that match your filters.

    Category
    Status