wikimedia/mediawiki-extensions-Translate

View on GitHub
src/Validation/Validators/InsertableRegexValidator.php

Summary

Maintainability
A
1 hr
Test Coverage

Method getIssues has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getIssues( Message $message, string $targetLanguage ): ValidationIssues {
        $issues = new ValidationIssues();

        preg_match_all( $this->validationRegex, $message->definition(), $definitionMatch );
        preg_match_all( $this->validationRegex, $message->translation(), $translationMatch );
Severity: Minor
Found in src/Validation/Validators/InsertableRegexValidator.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status