raster pushed a commit to branch master.

http://git.enlightenment.org/website/www.git/commit/?id=84819f2d57be609590ebd656232c4dae167fddde

commit 84819f2d57be609590ebd656232c4dae167fddde
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Mar 11 20:56:28 2018 +0900

    php warnings - fix up more of them to keep err logs empty
---
 public_html/lib/plugins/clear/syntax.php                | 4 ++--
 public_html/lib/plugins/gitbacked/action/editcommit.php | 2 +-
 public_html/lib/plugins/html5video/syntax/video.php     | 4 ++--
 public_html/lib/plugins/itemtable/syntax.php            | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/public_html/lib/plugins/clear/syntax.php 
b/public_html/lib/plugins/clear/syntax.php
index f1de38dd..60a75003 100644
--- a/public_html/lib/plugins/clear/syntax.php
+++ b/public_html/lib/plugins/clear/syntax.php
@@ -27,8 +27,8 @@ class syntax_plugin_clear extends DokuWiki_Syntax_Plugin {
     function connectTo($mode) {
         $this->Lexer->addSpecialPattern('<clear/>',$mode,'plugin_clear'); 
     }
-    function handle($match, $state, $pos, $handler){ return array($match, 
$state, $pos); }
-    function render($mode, $renderer, $data) {
+    function handle($match, $state, $pos, Doku_Handler $handler){ return 
array($match, $state, $pos); }
+    function render($mode, Doku_Renderer $renderer, $data) {
        if($mode == 'xhtml'){
           $renderer->doc .= "<div style='clear:both;'></div>";
           return true;
diff --git a/public_html/lib/plugins/gitbacked/action/editcommit.php 
b/public_html/lib/plugins/gitbacked/action/editcommit.php
index 0094bf4e..9fcfb306 100644
--- a/public_html/lib/plugins/gitbacked/action/editcommit.php
+++ b/public_html/lib/plugins/gitbacked/action/editcommit.php
@@ -24,7 +24,7 @@ class action_plugin_gitbacked_editcommit extends 
DokuWiki_Action_Plugin {
         io_mkdir_p($this->temp_dir);
     }
 
-    public function register(Doku_Event_Handler &$controller) {
+    public function register(Doku_Event_Handler $controller) {
 
         $controller->register_hook('IO_WIKIPAGE_WRITE', 'AFTER', $this, 
'handle_io_wikipage_write');
         $controller->register_hook('MEDIA_UPLOAD_FINISH', 'AFTER', $this, 
'handle_media_upload');
diff --git a/public_html/lib/plugins/html5video/syntax/video.php 
b/public_html/lib/plugins/html5video/syntax/video.php
index 22803893..78c7f0db 100644
--- a/public_html/lib/plugins/html5video/syntax/video.php
+++ b/public_html/lib/plugins/html5video/syntax/video.php
@@ -43,7 +43,7 @@ class syntax_plugin_html5video_video extends 
DokuWiki_Syntax_Plugin {
         
$this->Lexer->addSpecialPattern('\{\{[^}]*(?:(?:webm)|(?:ogv)|(?:mp4))(?:\|(?:\d{2,4}x\d{2,4})?(?:\|(?:loop)?,?(?:autoplay)?(?:,loop)?)?)?
 ?\}\}',$mode,'plugin_html5video_video');
     }
 
-    public function handle($match, $state, $pos, $handler){
+    public function handle($match, $state, $pos, Doku_Handler $handler){
         $params = substr($match, strlen('{{'), - strlen('}}')); //Strip markup
         if(strpos($params, ' ') === 0) { // Space as first character
             if(substr_compare($params, ' ', -1, 1) === 0) { // Space a front 
and back = centered
@@ -65,7 +65,7 @@ class syntax_plugin_html5video_video extends 
DokuWiki_Syntax_Plugin {
         return array(state, explode('|', $params));
     }
 
-    public function render($mode, $renderer, $data) {
+    public function render($mode, Doku_Renderer $renderer, $data) {
         if($mode != 'xhtml') return false;
 
         list($state, $params) = $data;
diff --git a/public_html/lib/plugins/itemtable/syntax.php 
b/public_html/lib/plugins/itemtable/syntax.php
index a07981fe..fa704753 100644
--- a/public_html/lib/plugins/itemtable/syntax.php
+++ b/public_html/lib/plugins/itemtable/syntax.php
@@ -47,7 +47,7 @@ class syntax_plugin_itemtable extends DokuWiki_Syntax_Plugin {
     /**
      * 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, substr($match, 10, -1) );
@@ -177,7 +177,7 @@ class syntax_plugin_itemtable extends 
DokuWiki_Syntax_Plugin {
       return $res;
     }
     
-    function render($mode, $renderer, $data) {
+    function render($mode, Doku_Renderer $renderer, $data) {
       // This will only render in xhtml
       if($mode == 'xhtml'){
          list($state, $match) = $data;

-- 


Reply via email to