From 96beb132e8e389edae4deb286818cf39b1b66f46 Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Fri, 9 Feb 2024 20:26:44 +0200 Subject: [PATCH] rename method --- _incl_data/class/Battle.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_incl_data/class/Battle.php b/_incl_data/class/Battle.php index 2fff39da..565f87fd 100644 --- a/_incl_data/class/Battle.php +++ b/_incl_data/class/Battle.php @@ -2315,14 +2315,14 @@ JS; //Восстановление манны 25% от мудрости за ход if ($this->stats[$this->uids[$this->atacks[$id]['uid1']]]['yhod'] > 0) { - $this->save_stats( + $this->saveStats( $this->yhod_user( $this->atacks[$id]['uid2'], $this->atacks[$id]['uid1'], $this->stats[$this->uids[$this->atacks[$id]['uid1']]]['yhod'] ) ); } elseif ($this->stats[$this->uids[$this->atacks[$id]['uid2']]]['yhod'] > 0) { - $this->save_stats( + $this->saveStats( $this->yhod_user( $this->atacks[$id]['uid1'], $this->atacks[$id]['uid2'], $this->stats[$this->uids[$this->atacks[$id]['uid2']]]['yhod'] @@ -4704,7 +4704,7 @@ JS; //получаем данные о поединке - private function save_stats($uid): void + private function saveStats($uid): void { Stats::saveBattleStats($this->stats[$this->uids[$uid]], $uid); }