Skip to content

Commit

Permalink
Merge pull request #2 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
foobarbar committed Feb 20, 2016
2 parents 107fe0d + ff0386a commit 81efcfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax.php
Expand Up @@ -38,7 +38,7 @@ public function connectTo($mode) {
}


public function handle($match, $state, $pos, &$handler){
public function handle($match, $state, $pos, Doku_Handler $handler){
$match = explode("|", preg_replace("/^.*?>(.*)}}$/", "$1", $match));
// terms
$terms = preg_replace("/[^,a-zA-Z0-9 +]/", "", $match[0]);
Expand All @@ -55,7 +55,7 @@ public function handle($match, $state, $pos, &$handler){
return $data;
}

public function render($mode, &$renderer, $data) {
public function render($mode, Doku_Renderer $renderer, $data) {
if($mode != 'xhtml') return false;
$renderer->doc .= '<script type="text/javascript" src="//www.google.com/trends/embed.js?'
.'hl='.$data["hl"]
Expand Down

0 comments on commit 81efcfa

Please sign in to comment.