From a473a4dc39164996f3e09c7b33aca50c998bd40d Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 26 Jan 2024 17:39:29 +0200 Subject: [PATCH] update post method name --- src/controller/room.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controller/room.php b/src/controller/room.php index 7f7212f..4bb7c6a 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -48,7 +48,7 @@ class Room foreach ((array) $this->_kevacoin->kevaFilter($namespace['namespaceId']) as $record) { // Is protocol compatible post - if ($this->post($namespace['namespaceId'], $record['key'], [], 'txid')) + if ($this->_post($namespace['namespaceId'], $record['key'], [], 'txid')) { $total++; } @@ -140,7 +140,7 @@ class Room foreach ($records as $record) { - if ($post = $this->post($namespace, $record['key'], $records, null, $time)) + if ($post = $this->_post($namespace, $record['key'], $records, null, $time)) { $posts[$time] = $post; } @@ -192,7 +192,7 @@ class Room ); } - public function post(string $namespace, string $key, array $posts = [], ?string $field = null, ?int &$time = 0): ?string + private function _post(string $namespace, string $key, array $posts = [], ?string $field = null, ?int &$time = 0): ?string { // Check record exists if (!$record = (array) $this->_kevacoin->kevaGet($namespace, $key))