From f09da412e35e1539907d2ecfe076e29051bdbe78 Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 10 Sep 2014 14:11:56 +0000 Subject: [PATCH] Same signature for all functions handle_plugin_args_cruft git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@9063 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/AsciiMath.php | 2 +- lib/plugin/AsciiSVG.php | 2 +- lib/plugin/Chart.php | 2 +- lib/plugin/GraphViz.php | 2 +- lib/plugin/PageDump.php | 3 --- lib/plugin/PhpHighlight.php | 2 +- lib/plugin/Ploticus.php | 2 +- lib/plugin/Processing.php | 2 +- lib/plugin/SqlResult.php | 1 - lib/plugin/SyntaxHighlighter.php | 2 +- lib/plugin/WikiPoll.php | 1 - 11 files changed, 8 insertions(+), 13 deletions(-) diff --git a/lib/plugin/AsciiMath.php b/lib/plugin/AsciiMath.php index 7bc9fca82..b555b55b2 100644 --- a/lib/plugin/AsciiMath.php +++ b/lib/plugin/AsciiMath.php @@ -51,7 +51,7 @@ class WikiPlugin_AsciiMath return array(); } - function handle_plugin_args_cruft(&$argstr, &$args) + function handle_plugin_args_cruft($argstr, $args) { $this->source = $argstr; } diff --git a/lib/plugin/AsciiSVG.php b/lib/plugin/AsciiSVG.php index 0e7422fba..088665c1a 100644 --- a/lib/plugin/AsciiSVG.php +++ b/lib/plugin/AsciiSVG.php @@ -42,7 +42,7 @@ class WikiPlugin_AsciiSVG ); } - function handle_plugin_args_cruft(&$argstr, &$args) + function handle_plugin_args_cruft($argstr, $args) { $this->source = $argstr; } diff --git a/lib/plugin/Chart.php b/lib/plugin/Chart.php index d897a9150..3bd31a3dd 100644 --- a/lib/plugin/Chart.php +++ b/lib/plugin/Chart.php @@ -64,7 +64,7 @@ class WikiPlugin_Chart ); } - function handle_plugin_args_cruft(&$argstr, &$args) + function handle_plugin_args_cruft($argstr, $args) { $this->source = $argstr; } diff --git a/lib/plugin/GraphViz.php b/lib/plugin/GraphViz.php index 0f3d70a9f..648039d78 100644 --- a/lib/plugin/GraphViz.php +++ b/lib/plugin/GraphViz.php @@ -127,7 +127,7 @@ class WikiPlugin_GraphViz ); } - function handle_plugin_args_cruft(&$argstr, &$args) + function handle_plugin_args_cruft($argstr, $args) { $this->source = $argstr; } diff --git a/lib/plugin/PageDump.php b/lib/plugin/PageDump.php index 59d64f15c..34fe53904 100644 --- a/lib/plugin/PageDump.php +++ b/lib/plugin/PageDump.php @@ -221,9 +221,6 @@ class WikiPlugin_PageDump ); } - // function handle_plugin_args_cruft(&$argstr, &$args) { - // } - function generateMessageId($mailified) { $array = explode("\n", $mailified); diff --git a/lib/plugin/PhpHighlight.php b/lib/plugin/PhpHighlight.php index 8e46601c7..1127280cc 100644 --- a/lib/plugin/PhpHighlight.php +++ b/lib/plugin/PhpHighlight.php @@ -88,7 +88,7 @@ class WikiPlugin_PhpHighlight return new RawXml($str); } - function handle_plugin_args_cruft(&$argstr, &$args) + function handle_plugin_args_cruft($argstr, $args) { $this->source = $argstr; } diff --git a/lib/plugin/Ploticus.php b/lib/plugin/Ploticus.php index d09ab0bb7..83f39e020 100644 --- a/lib/plugin/Ploticus.php +++ b/lib/plugin/Ploticus.php @@ -112,7 +112,7 @@ class WikiPlugin_Ploticus ); } - function handle_plugin_args_cruft(&$argstr, &$args) + function handle_plugin_args_cruft($argstr, $args) { $this->source = $argstr; } diff --git a/lib/plugin/Processing.php b/lib/plugin/Processing.php index 79a9a4b64..d11bff417 100644 --- a/lib/plugin/Processing.php +++ b/lib/plugin/Processing.php @@ -41,7 +41,7 @@ class WikiPlugin_Processing ); } - function handle_plugin_args_cruft(&$argstr, &$args) + function handle_plugin_args_cruft($argstr, $args) { $this->source = $argstr; } diff --git a/lib/plugin/SqlResult.php b/lib/plugin/SqlResult.php index c90936a6c..7fe31eab0 100644 --- a/lib/plugin/SqlResult.php +++ b/lib/plugin/SqlResult.php @@ -91,7 +91,6 @@ class WikiPlugin_SqlResult function handle_plugin_args_cruft($argstr, $args) { $this->_sql = str_replace("\n", " ", $argstr); - return; } function run($dbi, $argstr, &$request, $basepage) diff --git a/lib/plugin/SyntaxHighlighter.php b/lib/plugin/SyntaxHighlighter.php index d3044e098..8bbef4328 100644 --- a/lib/plugin/SyntaxHighlighter.php +++ b/lib/plugin/SyntaxHighlighter.php @@ -44,7 +44,7 @@ class WikiPlugin_SyntaxHighlighter ); } - function handle_plugin_args_cruft(&$argstr, &$args) + function handle_plugin_args_cruft($argstr, $args) { $this->source = $argstr; } diff --git a/lib/plugin/WikiPoll.php b/lib/plugin/WikiPoll.php index 11f272615..e365460da 100644 --- a/lib/plugin/WikiPoll.php +++ b/lib/plugin/WikiPoll.php @@ -117,7 +117,6 @@ class WikiPlugin_WikiPoll $argstr = str_replace("\n", " ", $argstr); $argstr = str_replace(array("[", "]"), array("_", ""), $argstr); $this->_args = $this->getArgs($argstr, $GLOBALS['request']); - return; } private function str2array($var, $obarray = false) -- 2.45.0