Skip to content

Commit

Permalink
Merge pull request #21 from splitbrain-forks/php7-signature
Browse files Browse the repository at this point in the history
Adjust method signatures to match parent
  • Loading branch information
MrBertie committed Jan 26, 2016
2 parents 504bd34 + e9e7188 commit 9af50a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion action/indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class action_plugin_subjectindex_indexer extends DokuWiki_Action_Plugin {
/**
* Register its handlers with the DokuWiki's event controller
*/
function register(&$controller) {
function register(Doku_Event_Handler $controller) {
$controller->register_hook('INDEXER_PAGE_ADD', 'AFTER', $this, 'handle');
}

Expand Down
4 changes: 2 additions & 2 deletions syntax/entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function connectTo($mode) {
}


function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {

if ($this->matcher->match($match) === true) {
$item = $this->matcher->first;
Expand All @@ -82,7 +82,7 @@ private function _remove_ord($text) {

// *************************************

function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {

if ($mode == 'xhtml') {
// just re-display a failed match
Expand Down
4 changes: 2 additions & 2 deletions syntax/ignore.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ function connectTo($mode) {
}


function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
// For use by indexer only in raw wiki text, not for display
return $match;
}


function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
if ($mode == 'xhtml') {
$renderer->doc .= '';
} else {
Expand Down
4 changes: 2 additions & 2 deletions syntax/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function connectTo($mode) {
}


function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
global $ID;

$match = substr($match, 15, -2); // strip "{{subjectindex>...}}" markup
Expand Down Expand Up @@ -119,7 +119,7 @@ function handle($match, $state, $pos, &$handler) {
}


function render($mode, &$renderer, $opt) {
function render($mode, Doku_Renderer $renderer, $opt) {
if ($mode == 'xhtml') {
$renderer->info['cache'] = false;

Expand Down

0 comments on commit 9af50a7

Please sign in to comment.