aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Remote/XmlRpcServer.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2023-09-02 14:42:51 +0200
committerGitHub <noreply@github.com>2023-09-02 14:42:51 +0200
commit5ff5424d8c81c7123d8656a787af2ff85b3dec21 (patch)
tree322929ee01d892bb3c927e7fe1238369c647f820 /inc/Remote/XmlRpcServer.php
parent0613df3287b82a98b1e97cf86ed9d4c8fbd16f1c (diff)
parent91560755291852b8302767d454183a7662666f7e (diff)
downloaddokuwiki-5ff5424d8c81c7123d8656a787af2ff85b3dec21.tar.gz
dokuwiki-5ff5424d8c81c7123d8656a787af2ff85b3dec21.zip
Merge pull request #4045 from dokuwiki/autofix
Use Rector to autofix code smell
Diffstat (limited to 'inc/Remote/XmlRpcServer.php')
-rw-r--r--inc/Remote/XmlRpcServer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/Remote/XmlRpcServer.php b/inc/Remote/XmlRpcServer.php
index b213cb9d7..e41b5d791 100644
--- a/inc/Remote/XmlRpcServer.php
+++ b/inc/Remote/XmlRpcServer.php
@@ -17,11 +17,11 @@ class XmlRpcServer extends Server
/**
* Constructor. Register methods and run Server
*/
- public function __construct($wait=false)
+ public function __construct($wait = false)
{
$this->remote = new Api();
- $this->remote->setDateTransformation(array($this, 'toDate'));
- $this->remote->setFileTransformation(array($this, 'toFile'));
+ $this->remote->setDateTransformation([$this, 'toDate']);
+ $this->remote->setFileTransformation([$this, 'toFile']);
parent::__construct(false, false, $wait);
}
@@ -51,7 +51,7 @@ class XmlRpcServer extends Server
/**
* @inheritdoc
*/
- public function call($methodname, $args)
+ protected function call($methodname, $args)
{
try {
$result = $this->remote->call($methodname, $args);