From e79d30bf9a8544d31552dbab1129e29a5d2a9619 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 24 Nov 2020 05:54:22 +0100 Subject: [PATCH] Continued: - changed old array() way to new [], still many might be missing - updated framework MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- application/hub/classes/client/http/class_HttpClient.php | 2 +- .../hub/classes/locator/class_UniversalNodeLocator.php | 4 ++-- core | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/hub/classes/client/http/class_HttpClient.php b/application/hub/classes/client/http/class_HttpClient.php index cf713c9cf..f48334e3a 100644 --- a/application/hub/classes/client/http/class_HttpClient.php +++ b/application/hub/classes/client/http/class_HttpClient.php @@ -112,7 +112,7 @@ class HttpClient extends BaseClient implements Client { * @param $port Port number to connect to * @return $responseArray Array with raw response */ - private function sendRawHttpRequest ($method, $host, $port, array $header = array()) { + private function sendRawHttpRequest ($method, $host, $port, array $header = []) { // Minimum raw HTTP/1.1 request $rawRequest = $method . ' ' . $host . ':' . $port . ' HTTP/1.1' . self::HTTP_EOL; $rawRequest .= 'Host: ' . $host . ':' . $port . self::HTTP_EOL; diff --git a/application/hub/classes/locator/class_UniversalNodeLocator.php b/application/hub/classes/locator/class_UniversalNodeLocator.php index bb0d31b4f..c2141c444 100644 --- a/application/hub/classes/locator/class_UniversalNodeLocator.php +++ b/application/hub/classes/locator/class_UniversalNodeLocator.php @@ -59,7 +59,7 @@ class UniversalNodeLocator extends BaseHubSystem implements LocateableNode, Regi * @param $current An array with "raw" data from the database layer for the UNL. This parameter is optional. * @return $locatorInstance An instance of a LocateableNode class */ - public final static function createUniversalNodeLocator (array $current = array()) { + public final static function createUniversalNodeLocator (array $current = []) { // Get new instance $locatorInstance = new UniversalNodeLocator(); @@ -130,7 +130,7 @@ class UniversalNodeLocator extends BaseHubSystem implements LocateableNode, Regi * @param $unlData An array with "raw" data from the database layer for the UNL. This parameter is optional. * @return void */ - private function initUniversalNodeLocator (array $unlData = array()) { + private function initUniversalNodeLocator (array $unlData = []) { // Init UNL array $this->unlData = []; diff --git a/core b/core index 8a70226bd..498e6b065 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 8a70226bd287a3f13b27932e2ec88d16c51c7e39 +Subproject commit 498e6b065ce47804bff4e1073592a2cc8e28f8ef -- 2.39.5