protected function applyUserStyle($userStyle, $text) { $styles = (array) $this->userStyles[$userStyle]; foreach ($styles as $style) { $text = $this->stylize($style, $text); } return $text; }