protected function setTextAreaSize($options) { if (isset($options['size'])) { return $this->setQuickTextAreaSize($options); } // If the "size" attribute was not specified, we will just look for the regular // columns and rows attributes, using sane defaults if these do not exist on // the attributes array. We'll then return this entire options array back. $cols = array_get($options, 'cols', 50); $rows = array_get($options, 'rows', 10); return array_merge($options, compact('cols', 'rows')); }