From 307699119af2337a30213969032ab96aa3401b51 Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Fri, 12 Jul 2019 06:12:47 +0200
Subject: [PATCH] Simplify & modernize functions in
 tools/i18n/not-gettexted.php

---
 tools/i18n/not-gettexted.php | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/tools/i18n/not-gettexted.php b/tools/i18n/not-gettexted.php
index e8ae2c3143..c40631b6ea 100644
--- a/tools/i18n/not-gettexted.php
+++ b/tools/i18n/not-gettexted.php
@@ -29,8 +29,7 @@ class NotGettexted {
 	var $commands = array('extract' => 'command_extract', 'replace' => 'command_replace' );
 
 
-	function logmsg() {
-		$args = func_get_args();
+	function logmsg( ...$args ) {
 		if ($this->enable_logging) error_log(implode(' ', $args));
 	}
 
@@ -138,8 +137,7 @@ class NotGettexted {
 	}
 
 
-	function command_extract() {
-		$args = func_get_args();
+	function command_extract( ...$args ) {
 		$pot_filename = $args[0];
 		if (isset($args[1]) && is_array($args[1]))
 			$filenames = $args[1];
@@ -176,8 +174,7 @@ class NotGettexted {
 		return true;
 	}
 
-	function command_replace() {
-		$args = func_get_args();
+	function command_replace( ...$args ) {
 		$mo_filename = $args[0];
 		if (isset($args[1]) && is_array($args[1]))
 			$filenames = $args[1];
-- 
2.21.0.windows.1

