includes/htmlform/fields/HTMLTextAreaField.php
Method getInputCodex
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputCodex( $value, $hasErrors ) {
$textareaClasses = [ 'cdx-text-area__textarea' ];
if ( $this->mClass !== '' ) {
$textareaClasses[] = $this->mClass;
}
Method getInputOOUI
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputOOUI( $value ) {
$classes = [];
if ( isset( $this->mParams['cols'] ) ) {
throw new InvalidArgumentException( "OOUIHTMLForm does not support the 'cols' parameter for textareas" );
Method getInputHTML
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputHTML( $value ) {
$classes = [];
$attribs = [
'id' => $this->mID,