summaryrefslogtreecommitdiff
path: root/lib/plugins/info
diff options
context:
space:
mode:
authorDominik Eckelmann <deckelmann@gmail.com>2012-11-29 16:06:43 +0100
committerDominik Eckelmann <deckelmann@gmail.com>2012-11-29 16:06:43 +0100
commit38479cbba628ee76a92ff5f3c974cfa8e6ce9e61 (patch)
tree710a0bca9a6f0704903f295bf6237807685d53fa /lib/plugins/info
parent818f6d5179dd55f43e04269bc03e0afd5459c27e (diff)
downloadrpg-38479cbba628ee76a92ff5f3c974cfa8e6ce9e61.tar.gz
rpg-38479cbba628ee76a92ff5f3c974cfa8e6ce9e61.tar.bz2
some coding style improvements
- removed some dead/unused code - fixed phpdoc - added typing on methods
Diffstat (limited to 'lib/plugins/info')
-rw-r--r--lib/plugins/info/syntax.php20
1 files changed, 3 insertions, 17 deletions
diff --git a/lib/plugins/info/syntax.php b/lib/plugins/info/syntax.php
index 9aedbf0aa..d813aa23a 100644
--- a/lib/plugins/info/syntax.php
+++ b/lib/plugins/info/syntax.php
@@ -16,20 +16,6 @@ if(!defined('DOKU_INC')) die();
class syntax_plugin_info extends DokuWiki_Syntax_Plugin {
/**
- * return some info
- */
- function getInfo(){
- return array(
- 'author' => 'Andreas Gohr',
- 'email' => 'andi@splitbrain.org',
- 'date' => '2008-09-12',
- 'name' => 'Info Plugin',
- 'desc' => 'Displays information about various DokuWiki internals',
- 'url' => 'http://dokuwiki.org/plugin:info',
- );
- }
-
- /**
* What kind of syntax are we?
*/
function getType(){
@@ -114,7 +100,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin {
*
* uses some of the original renderer methods
*/
- function _plugins_xhtml($type, &$renderer){
+ function _plugins_xhtml($type, Doku_Renderer &$renderer){
global $lang;
$renderer->doc .= '<ul>';
@@ -152,7 +138,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin {
*
* uses some of the original renderer methods
*/
- function _helpermethods_xhtml(&$renderer){
+ function _helpermethods_xhtml(Doku_Renderer &$renderer){
global $lang;
$plugins = plugin_list('helper');
@@ -237,7 +223,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin {
/**
* Adds a TOC item
*/
- function _addToTOC($text, $level, &$renderer){
+ function _addToTOC($text, $level, Doku_Renderer_xhtml &$renderer){
global $conf;
if (($level >= $conf['toptoclevel']) && ($level <= $conf['maxtoclevel'])){