From 5199842166c77a6b8f13e96ed756a6ba168f9bb3 Mon Sep 17 00:00:00 2001 From: Jocy Date: Mon, 22 May 2017 17:21:12 +0200 Subject: [PATCH] added public in constructor --- plugins/MCTeam/Common/RecordWidget.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/MCTeam/Common/RecordWidget.php b/plugins/MCTeam/Common/RecordWidget.php index f3af5bd1..b28a0248 100644 --- a/plugins/MCTeam/Common/RecordWidget.php +++ b/plugins/MCTeam/Common/RecordWidget.php @@ -28,7 +28,7 @@ class RecordWidget { * * @param \ManiaControl\ManiaControl $maniaControl */ - function __construct(ManiaControl $maniaControl) { + public function __construct(ManiaControl $maniaControl) { $this->maniaControl = $maniaControl; } @@ -40,12 +40,12 @@ class RecordWidget { * @return \FML\Controls\Frame */ public function generateRecordLineFrame($record, Player $player = null) { - $width = $this->width; - $lineHeight = $this->lineHeight; + $width = $this->width; + $lineHeight = $this->lineHeight; + $largeNumberDiff = 0; $recordFrame = new Frame(); - $largeNumberDiff = 0; if ($record->rank > 999) { $largeNumberDiff = 0.03; }