[wip] code smell, psr-12, mvc, other, forgot by 1 year.

This commit is contained in:
2023-01-24 19:04:15 +02:00
parent 775a56c4c8
commit 2bb6bef614
13 changed files with 254 additions and 112 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ class Travel
* Соответствие ID комнаты игровому файлу.
* @var string[]
*/
public static $roomFileName = [
public static array $roomFileName = [
1 => 'main.php',
20 => 'city.php',
21 => 'city.php',
@@ -98,7 +98,7 @@ class Travel
*/
public static function toRoom(int $roomId, int $roomIdCurrent): void
{
UserStats::getInstance()->
//UserStats::getInstance()->
$itemsWeightOverflow = Db::getInstance()->fetchColumn('SELECT SUM(weight) - (select strength * 4 from users where id = ?) AS weight_overflow FROM inventory WHERE owner_id = ? AND on_sale = 0', [$_SESSION['uid'], $_SESSION['uid']]);
$eff = Db::getInstance()->fetchColumn('SELECT type FROM users_effects WHERE owner_id = ? AND (`type` = 10 OR `type` = 13 OR `type` = 14)', $_SESSION['uid']);
$errors = [];