Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Quy committed Jan 24, 2023
1 parent fcf2264 commit 3c06d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/joomla/form/field/textarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
$counterlabel = 'data-counter-label="' . $this->escape(Text::_('JFIELD_META_DESCRIPTION_COUNTER')) . '"';
}

$attributes = array(
$attributes = [
$columns ? (is_numeric($columns) ? 'cols="' . $columns . '"' : $columns) : '',
$rows ? (is_numeric($rows) ? 'rows="' . $rows . '"' : $rows) : '',
!empty($class) ? 'class="form-control ' . $class . $charcounter . '"' : 'class="form-control' . $charcounter . '"',
Expand All @@ -84,7 +84,7 @@
$maxlength ? (is_numeric($maxlength) ? 'maxlength="' . $maxlength . '"' : $maxlength) : '',
!empty($counterlabel) ? $counterlabel : '',
$dataAttribute,
);
];
?>
<textarea name="<?php
echo $name; ?>" id="<?php
Expand Down

0 comments on commit 3c06d17

Please sign in to comment.