Improved PHPDoc, Type Hints & Parameter Names

This commit is contained in:
Steffen Schröder
2014-05-13 16:40:05 +02:00
parent 3e69e03292
commit 2a705e05d9
27 changed files with 434 additions and 447 deletions

View File

@ -124,12 +124,12 @@ class HelpManager implements CommandListener, CallbackListener {
}
/**
* Prepares the commands for the HelpAll ManiaLink.
* Prepare the commands for the HelpAll ManiaLink.
*
* @param $commands
* @param $player
* @param array $commands
* @param mixed $player
*/
private function prepareHelpAll($commands, $player) {
private function prepareHelpAll(array $commands, $player) {
$showCommands = array();
$registeredMethods = array();
foreach (array_reverse($commands) as $command) {
@ -157,10 +157,10 @@ class HelpManager implements CommandListener, CallbackListener {
/**
* Shows the HelpAll list to the player.
*
* @param $commands
* @param $player
* @param array $commands
* @param mixed $player
*/
private function showHelpAllList($commands, $player) {
private function showHelpAllList(array $commands, $player) {
$width = $this->maniaControl->manialinkManager->styleManager->getListWidgetsWidth();
$height = $this->maniaControl->manialinkManager->styleManager->getListWidgetsHeight();