added public in constructor

This commit is contained in:
Jocy 2017-05-22 17:21:12 +02:00
parent 53cc23dc09
commit 5199842166

View File

@ -28,7 +28,7 @@ class RecordWidget {
* *
* @param \ManiaControl\ManiaControl $maniaControl * @param \ManiaControl\ManiaControl $maniaControl
*/ */
function __construct(ManiaControl $maniaControl) { public function __construct(ManiaControl $maniaControl) {
$this->maniaControl = $maniaControl; $this->maniaControl = $maniaControl;
} }
@ -42,10 +42,10 @@ class RecordWidget {
public function generateRecordLineFrame($record, Player $player = null) { public function generateRecordLineFrame($record, Player $player = null) {
$width = $this->width; $width = $this->width;
$lineHeight = $this->lineHeight; $lineHeight = $this->lineHeight;
$largeNumberDiff = 0;
$recordFrame = new Frame(); $recordFrame = new Frame();
$largeNumberDiff = 0;
if ($record->rank > 999) { if ($record->rank > 999) {
$largeNumberDiff = 0.03; $largeNumberDiff = 0.03;
} }