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
michitux committed Feb 2, 2016
2 parents db743fb + c53e92f commit e2c528b
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions syntax/bold.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ function postConnect() { $this->Lexer->addExitPattern('\[/b\]','strong'); }
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
return array();
}

/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
return true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions syntax/code.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ function postConnect() { $this->Lexer->addExitPattern('\[/code\]','preformatted'
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
return true;
}

/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
return true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions syntax/color.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function postConnect() { $this->Lexer->addExitPattern('\[/color\]','plugin_bbcod
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
switch ($state) {
case DOKU_LEXER_ENTER :
$match = substr($match, 7, -1);
Expand All @@ -190,7 +190,7 @@ function handle($match, $state, $pos, &$handler) {
/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
if($mode == 'xhtml') {
list($state, $match) = $data;
switch ($state) {
Expand Down
4 changes: 2 additions & 2 deletions syntax/deleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ function postConnect() { $this->Lexer->addExitPattern('\[/s\]','deleted'); }
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
return array();
}

/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
return true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions syntax/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function connectTo($mode) { $this->Lexer->addSpecialPattern('\[email.+?\[/email\
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
$match = trim(substr($match, 7, -8));
$match = preg_split('/\]/u',$match,2);
if ( !isset($match[0]) ) {
Expand All @@ -40,7 +40,7 @@ function handle($match, $state, $pos, &$handler) {
/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
return true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions syntax/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function connectTo($mode) { $this->Lexer->addSpecialPattern('\[img.+?\[/img\]',$
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
$match = trim(substr($match, 5, -6));
$match = preg_split('/\]/u',$match,2);
if ( !isset($match[0]) ) {
Expand All @@ -48,7 +48,7 @@ function handle($match, $state, $pos, &$handler) {
/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
return true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions syntax/italic.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ function postConnect() { $this->Lexer->addExitPattern('\[/i\]','emphasis'); }
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
return array();
}

/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
return true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions syntax/link.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function connectTo($mode) { $this->Lexer->addSpecialPattern('\[url.+?\[/url\]',$
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
$match = substr($match, 5, -6);
if (preg_match('/".+?"/',$match)) $match = substr($match, 1, -1); // addition #1: unquote
$match = preg_split('/\]/u',$match,2);
Expand Down Expand Up @@ -53,7 +53,7 @@ function handle($match, $state, $pos, &$handler) {
/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
return true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions syntax/monospace.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ function postConnect() { $this->Lexer->addExitPattern('\[/m\]','monospace'); }
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
return array();
}

/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
return true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions syntax/olist.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function postConnect() { $this->Lexer->addExitPattern('\[/list\]', 'plugin_bbcod
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
switch ($state) {
case DOKU_LEXER_ENTER :
// get the list type
Expand All @@ -47,7 +47,7 @@ function handle($match, $state, $pos, &$handler) {
/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
if($mode == 'xhtml') {
list($state, $match) = $data;
switch ($state) {
Expand Down
4 changes: 2 additions & 2 deletions syntax/quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function postConnect() { $this->Lexer->addExitPattern('\[/quote\]','plugin_bbcod
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
switch ($state) {
case DOKU_LEXER_ENTER :
$match = explode('"',substr($match, 6, -1));
Expand All @@ -45,7 +45,7 @@ function handle($match, $state, $pos, &$handler) {
/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
if($mode == 'xhtml') {
list($state, $match) = $data;
switch ($state) {
Expand Down
4 changes: 2 additions & 2 deletions syntax/size.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function postConnect() { $this->Lexer->addExitPattern('\[/size\]','plugin_bbcode
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {
switch ($state) {
case DOKU_LEXER_ENTER :
$match = substr($match, 6, -1);
Expand All @@ -48,7 +48,7 @@ function handle($match, $state, $pos, &$handler) {
/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
if($mode == 'xhtml') {
list($state, $match) = $data;
switch ($state) {
Expand Down
4 changes: 2 additions & 2 deletions syntax/ulist.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function postConnect() { $this->Lexer->addExitPattern('\[/list\]', 'plugin_bbcod
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler){
function handle($match, $state, $pos, Doku_Handler $handler){
switch ($state) {
case DOKU_LEXER_ENTER :
return array($state, '');
Expand All @@ -44,7 +44,7 @@ function handle($match, $state, $pos, &$handler){
/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
if($mode == 'xhtml'){
list($state, $match) = $data;
switch ($state) {
Expand Down
4 changes: 2 additions & 2 deletions syntax/underline.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ function postConnect() { $this->Lexer->addExitPattern('\[/u\]','underline'); }
/**
* Handle the match
*/
function handle($match, $state, $pos, &$handler){
function handle($match, $state, $pos, Doku_Handler $handler){
return array();
}

/**
* Create output
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
return true;
}
}
Expand Down

0 comments on commit e2c528b

Please sign in to comment.