wikimedia/mediawiki-core

View on GitHub
includes/htmlform/fields/HTMLTextAreaField.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method getInputCodex has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getInputCodex( $value, $hasErrors ) {
        $textareaClasses = [ 'cdx-text-area__textarea' ];
        if ( $this->mClass !== '' ) {
            $textareaClasses[] = $this->mClass;
        }
Severity: Minor
Found in includes/htmlform/fields/HTMLTextAreaField.php - About 1 hr to fix

    Method getInputOOUI has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getInputOOUI( $value ) {
            $classes = [];
    
            if ( isset( $this->mParams['cols'] ) ) {
                throw new InvalidArgumentException( "OOUIHTMLForm does not support the 'cols' parameter for textareas" );
    Severity: Minor
    Found in includes/htmlform/fields/HTMLTextAreaField.php - About 1 hr to fix

      Method getInputHTML has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getInputHTML( $value ) {
              $classes = [];
      
              $attribs = [
                      'id' => $this->mID,
      Severity: Minor
      Found in includes/htmlform/fields/HTMLTextAreaField.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status