jumper423/decaptcha

View on GitHub
src/services/RuCaptchaReCaptchaV3.php

Summary

Maintainability
B
5 hrs
Test Coverage

Method init has 136 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function init()
    {
        parent::init();

        unset(
Severity: Major
Found in src/services/RuCaptchaReCaptchaV3.php - About 5 hrs to fix

    Avoid unused parameters such as '$null'.
    Open

        public function recognize($additionally = [], $null = null)
    Severity: Minor
    Found in src/services/RuCaptchaReCaptchaV3.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

    There are no issues that match your filters.

    Category
    Status