Krauza/webservice

View on GitHub
src/Infrastructure/Api/Type/Mutation/AddAnswer.php

Summary

Maintainability
A
1 hr
Test Coverage

Method config has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function config(): array
    {
        return [
            'type' => AddAnswerType::getInstance(),
            'description' => 'Add answer for the card',
Severity: Minor
Found in src/Infrastructure/Api/Type/Mutation/AddAnswer.php - About 1 hr to fix

    Avoid unused parameters such as '$rootValue'.
    Open

                'resolve' => function($rootValue, $args, $context) {

    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

    There are no issues that match your filters.

    Category
    Status