deep-web-solutions/wordpress-framework-utilities

View on GitHub
src/includes/Validation/ValidationService.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function validate_allowed_value( $value, string $default_key, string $options_key, string $validation_type, string $handler_id = 'settings' ) {
Severity: Minor
Found in src/includes/Validation/ValidationService.php - About 35 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $this->validate_float( $value, $default_key, $handler_id );
    Severity: Major
    Found in src/includes/Validation/ValidationService.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return $this->validate_callable( $value, $default_key, $handler_id );
      Severity: Major
      Found in src/includes/Validation/ValidationService.php - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status