From 0144e0e1f096978e3780a6d91e5e8ca901b2afdb Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 2 May 2024 03:25:24 +0300 Subject: [PATCH] remove extra code --- src/Server/Ratchet.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Server/Ratchet.php b/src/Server/Ratchet.php index 4b682f0..9a58836 100644 --- a/src/Server/Ratchet.php +++ b/src/Server/Ratchet.php @@ -36,7 +36,7 @@ class Ratchet implements MessageComponentInterface // Init allowed chat rooms registry if ($namespaces = $this->_kevacoin->kevaListNamespaces()) { - $i = 1; foreach ((array) $namespaces as $namespace) + foreach ((array) $namespaces as $namespace) { // Skip system namespaces if (str_starts_with($namespace['displayName'], '_')) @@ -58,7 +58,7 @@ class Ratchet implements MessageComponentInterface } // Append room to the namespace registry - $this->_namespaces[$i++] = [ + $this->_namespaces[] = [ 'hash' => $namespace['namespaceId'], 'name' => $namespace['displayName'] ];