@@ -61,6 +61,11 @@ discard block |
||
61 | 61 | return $shortcodes; |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param string|null $bbCode |
|
66 | + * @param null|string $content |
|
67 | + * @param string $text |
|
68 | + */ |
|
64 | 69 | private function getObject($name, $parameters, $bbCode, $offset, $content, $text) |
65 | 70 | { |
66 | 71 | return new ParsedShortcode(new Shortcode($name, $parameters, $content, $bbCode), $text, $offset); |
@@ -265,6 +270,10 @@ discard block |
||
265 | 270 | return true; |
266 | 271 | } |
267 | 272 | |
273 | + /** |
|
274 | + * @param integer|null $type |
|
275 | + * @param \Closure $callbacks |
|
276 | + */ |
|
268 | 277 | private function match($type, $callbacks = null, $ws = false) |
269 | 278 | { |
270 | 279 | if($this->position >= $this->tokensCount) { |
@@ -292,6 +301,9 @@ discard block |
||
292 | 301 | |
293 | 302 | /* --- LEXER ----------------------------------------------------------- */ |
294 | 303 | |
304 | + /** |
|
305 | + * @param string $text |
|
306 | + */ |
|
295 | 307 | private function tokenize($text) |
296 | 308 | { |
297 | 309 | preg_match_all($this->lexerRegex, $text, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE); |