@@ -183,11 +183,17 @@ discard block |
||
183 | 183 | return $this->isStyleForced() || $this->isSupported(); |
184 | 184 | } |
185 | 185 | |
186 | + /** |
|
187 | + * @param string $style |
|
188 | + */ |
|
186 | 189 | protected function isStyleExists($style) |
187 | 190 | { |
188 | 191 | return array_key_exists($style, $this->styles); |
189 | 192 | } |
190 | 193 | |
194 | + /** |
|
195 | + * @param string $style |
|
196 | + */ |
|
191 | 197 | protected function applyStyle($style, $text) |
192 | 198 | { |
193 | 199 | return $this->buildEscSeq($this->styles[$style]) . $text . $this->buildEscSeq($this->styles['reset']); |
@@ -198,11 +204,17 @@ discard block |
||
198 | 204 | return sprintf(self::ESC_SEQ_PATTERN, $style); |
199 | 205 | } |
200 | 206 | |
207 | + /** |
|
208 | + * @param string $style |
|
209 | + */ |
|
201 | 210 | protected function isUserStyleExists($style) |
202 | 211 | { |
203 | 212 | return array_key_exists($style, $this->userStyles); |
204 | 213 | } |
205 | 214 | |
215 | + /** |
|
216 | + * @param string $userStyle |
|
217 | + */ |
|
206 | 218 | protected function applyUserStyle($userStyle, $text) |
207 | 219 | { |
208 | 220 | $styles = (array) $this->userStyles[$userStyle]; |