From 7376bbaaff215d0cea2b1413792684d06fbbc55e Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 17 Mar 2014 20:39:25 +0100 Subject: [PATCH] Removed usage of array elements that are never transmitted. Signed-off-by: Roland Haeder --- .../dht/class_NoDhtBootstrapAttemptedException.php | 5 +---- application/hub/main/class_BaseHubSystem.php | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/application/hub/exceptions/dht/class_NoDhtBootstrapAttemptedException.php b/application/hub/exceptions/dht/class_NoDhtBootstrapAttemptedException.php index fed54274e..0f20c6e33 100644 --- a/application/hub/exceptions/dht/class_NoDhtBootstrapAttemptedException.php +++ b/application/hub/exceptions/dht/class_NoDhtBootstrapAttemptedException.php @@ -32,14 +32,11 @@ class NoDhtBootstrapAttemptedException extends FrameworkException { */ public function __construct (array $messageArray, $code) { // Construct the message - $message = sprintf('[%s:%d] This DHT (%s) has not attempted to bootstrap, but got an answer from session-id=%s,ip=%s/%s,listen port=%s,status=%s.', + $message = sprintf('[%s:%d] This DHT (%s) has not attempted to bootstrap, but got an answer from session-id=%s,status=%s.', $messageArray[0]->__toString(), $this->getLine(), $messageArray[1]->__toString(), $messageArray[2][XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_SESSION_ID], - $messageArray[2][XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_EXTERNAL_IP], - $messageArray[2][XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_INTERNAL_IP], - $messageArray[2][XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_LISTEN_PORT], $messageArray[2][XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_NODE_STATUS] ); diff --git a/application/hub/main/class_BaseHubSystem.php b/application/hub/main/class_BaseHubSystem.php index 39ce33e30..4efd83b8f 100644 --- a/application/hub/main/class_BaseHubSystem.php +++ b/application/hub/main/class_BaseHubSystem.php @@ -33,7 +33,7 @@ class BaseHubSystem extends BaseFrameworkSystem { const EXCEPTION_REQUEST_NOT_ACCEPTED = 0x907; const EXCEPTION_DHT_BOOTSTRAP_NOT_ACCEPTED = 0x908; const EXCEPTION_MULTIPLE_MESSAGE_SENT = 0x909; - const EXCEPTION_DHT_BOOTSTRAP_NOT_ATTEMPTED = 0x90A; + const EXCEPTION_DHT_BOOTSTRAP_NOT_ATTEMPTED = 0x90a; // Message status codes const MESSAGE_STATUS_CODE_OKAY = 'OKAY'; -- 2.39.5