lookyman/recaptcha

View on GitHub

Showing 3 of 3 total issues

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

    public function loadConfiguration()
    {
        $builder = $this->getContainerBuilder();
        $config = $this->validateConfig($this->defaults);

Severity: Minor
Found in src/DI/ReCaptchaExtension.php - About 1 hr to fix

    Method __construct has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function __construct($siteKey, $secretKey, $verificationUrl, $errorMessage, $validateRemoteIp, $theme, $type, $size)
    Severity: Major
    Found in src/Config.php - About 1 hr to fix

      Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function __construct($siteKey, $theme, $type, $size, $caption = NULL)
      Severity: Minor
      Found in src/Forms/Controls/ReCaptchaControl.php - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language