diff options
author | Dominik Eckelmann <deckelmann@gmail.com> | 2012-11-29 16:06:43 +0100 |
---|---|---|
committer | Dominik Eckelmann <deckelmann@gmail.com> | 2012-11-29 16:06:43 +0100 |
commit | 38479cbba628ee76a92ff5f3c974cfa8e6ce9e61 (patch) | |
tree | 710a0bca9a6f0704903f295bf6237807685d53fa /lib/plugins/syntax.php | |
parent | 818f6d5179dd55f43e04269bc03e0afd5459c27e (diff) | |
download | dokuwiki-38479cbba628ee76a92ff5f3c974cfa8e6ce9e61.tar.gz dokuwiki-38479cbba628ee76a92ff5f3c974cfa8e6ce9e61.zip |
some coding style improvements
- removed some dead/unused code
- fixed phpdoc
- added typing on methods
Diffstat (limited to 'lib/plugins/syntax.php')
-rw-r--r-- | lib/plugins/syntax.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php index 8b94493e4..552cc747a 100644 --- a/lib/plugins/syntax.php +++ b/lib/plugins/syntax.php @@ -84,13 +84,13 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode { * * Usually you should only need the $match param. * - * @param $match string The text matched by the patterns - * @param $state int The lexer state for the match - * @param $pos int The character position of the matched text - * @param $handler Doku_Handler Reference to the Doku_Handler object - * @return array Return an array with all data you want to use in render + * @param string $match The text matched by the patterns + * @param int $state The lexer state for the match + * @param int $pos The character position of the matched text + * @param Doku_Handler $handler Reference to the Doku_Handler object + * @return array Return an array with all data you want to use in render */ - function handle($match, $state, $pos, &$handler){ + function handle($match, $state, $pos, Doku_Handler &$handler){ trigger_error('handle() not implemented in '.get_class($this), E_USER_WARNING); } @@ -117,7 +117,7 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode { * @param $data array data created by handler() * @return boolean rendered correctly? */ - function render($format, &$renderer, $data) { + function render($format, Doku_Renderer &$renderer, $data) { trigger_error('render() not implemented in '.get_class($this), E_USER_WARNING); } |