fixed & improved phpdoc
This commit is contained in:
@ -88,7 +88,7 @@ class DedimaniaData {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a Player to the Players array
|
||||
* Add a Player to the Players array
|
||||
*
|
||||
* @param DedimaniaPlayer $player
|
||||
*/
|
||||
@ -98,9 +98,9 @@ class DedimaniaData {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a Dedimania Player by its login
|
||||
* Remove a Dedimania Player by its login
|
||||
*
|
||||
* @param string $player
|
||||
* @param string $login
|
||||
*/
|
||||
public function removePlayer($login) {
|
||||
unset($this->players[$login]);
|
||||
|
@ -237,6 +237,7 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
|
||||
* Fetch Dedimania Records
|
||||
*
|
||||
* @param bool $reset
|
||||
* @return bool
|
||||
*/
|
||||
private function fetchDedimaniaRecords($reset = true) {
|
||||
if (!$this->dedimaniaData || $this->dedimaniaData->sessionId == '') {
|
||||
@ -889,7 +890,8 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
|
||||
/**
|
||||
* Inserts the given new Dedimania record at the proper position
|
||||
*
|
||||
* @param array $newRecord
|
||||
* @param RecordData $newRecord
|
||||
* @param RecordData $oldRecord
|
||||
* @return bool
|
||||
*/
|
||||
private function insertDedimaniaRecord(RecordData &$newRecord, RecordData $oldRecord) {
|
||||
@ -994,9 +996,9 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the replay values for the given record
|
||||
* Update the replay values for the given record
|
||||
*
|
||||
* @param array $record
|
||||
* @param RecordData $record
|
||||
*/
|
||||
private function setRecordReplays(RecordData &$record) {
|
||||
// Set validation replay
|
||||
@ -1057,11 +1059,6 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
|
||||
return;
|
||||
}
|
||||
|
||||
$pagesId = '';
|
||||
if (count($records) > 15) {
|
||||
$pagesId = 'DediRecordsListPages';
|
||||
}
|
||||
|
||||
//create manialink
|
||||
$maniaLink = new ManiaLink(ManialinkManager::MAIN_MLID);
|
||||
$script = $maniaLink->getScript();
|
||||
|
Reference in New Issue
Block a user