diff --git a/Plugins/Mineplex.ReportSite/report.php b/Plugins/Mineplex.ReportSite/report.php index 5c6fcf36b..c38325d2a 100644 --- a/Plugins/Mineplex.ReportSite/report.php +++ b/Plugins/Mineplex.ReportSite/report.php @@ -9,7 +9,7 @@ /** @var User */ private $suspect; - /** @var ReporterReason[] */ + /** @var UserReport[] */ private $reporters; /** @var Int */ @@ -20,7 +20,7 @@ * @param Int $id * @param User|Null $handler * @param User $suspect - * @param ReporterReason[] $reporters + * @param UserReport[] $reporters * @param Int $category */ function __construct($id, $handler, $suspect, $reporters, $category) @@ -41,11 +41,11 @@ } /** - * @return ReporterReason + * @return UserReport */ private function getOldestReport() { - /** @var ReporterReason $oldestReason */ + /** @var UserReport $oldestReason */ $oldestReason = null; foreach ($this->reporters as $reason) @@ -84,7 +84,7 @@ } /** - * @return ReporterReason[] + * @return UserReport[] */ public function getReporters() { diff --git a/Plugins/Mineplex.ReportSite/reporter_reason.php b/Plugins/Mineplex.ReportSite/user_report.php similarity index 95% rename from Plugins/Mineplex.ReportSite/reporter_reason.php rename to Plugins/Mineplex.ReportSite/user_report.php index c02128322..93ac22d6f 100644 --- a/Plugins/Mineplex.ReportSite/reporter_reason.php +++ b/Plugins/Mineplex.ReportSite/user_report.php @@ -1,4 +1,4 @@ - 'Global', @@ -238,7 +238,7 @@ function getUser($id) /** * @param int $reportId - * @return ReporterReason[] + * @return UserReport[] */ function getReporters($reportId) { @@ -255,7 +255,7 @@ function getReporters($reportId) while ($statement->fetch()) { - $reportReasons[$reporterId] = new ReporterReason(getUser($reporterId), new DateTime($time), $reason); + $reportReasons[$reporterId] = new UserReport(getUser($reporterId), new DateTime($time), $reason); } } finally @@ -276,7 +276,7 @@ function getInvolvedUsers($snapshot, $report) $involvedUsers = $snapshot->getPlayers(); $involvedUsers[$report->getSuspect()->getId()] = $report->getSuspect(); - /** @var ReporterReason $reporter */ + /** @var UserReport $reporter */ foreach ($report->getReporters() as $reporterReason) { $reporter = $reporterReason->getUser(); $involvedUsers[$reporter->getId()] = $reporter;