Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Fix small whitespace issues, make broadcasts return count() as specif…
Browse files Browse the repository at this point in the history
…ied in PHPDoc
  • Loading branch information
msjyoo committed May 23, 2015
1 parent adc5aa1 commit a0f8bc1
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/pocketmine/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -1764,8 +1764,8 @@ public function __construct(\ClassLoader $autoloader, \ThreadedLogger $logger, $
}

/**
* @param $message
* @param Player[]|null $recipients
* @param string $message
* @param Player[]|null $recipients
*
* @return int
*/
Expand All @@ -1778,11 +1778,13 @@ public function broadcastMessage($message, $recipients = null){
foreach($recipients as $recipient){
$recipient->sendMessage($message);
}

return count($recipients);
}

/**
* @param $tip
* @param Player[]|null $recipients
* @param string $tip
* @param Player[]|null $recipients
*
* @return int
*/
Expand All @@ -1795,11 +1797,13 @@ public function broadcastTip($tip, $recipients = null){
foreach($recipients as $recipient){
$recipient->sendTip($tip);
}

return count($recipients);
}

/**
* @param $popup
* @param Player[]|null $recipients
* @param string $popup
* @param Player[]|null $recipients
*
* @return int
*/
Expand All @@ -1812,6 +1816,8 @@ public function broadcastPopup($popup, $recipients = null){
foreach($recipients as $recipient){
$recipient->sendPopup($popup);
}

return count($recipients);
}

/**
Expand Down

0 comments on commit a0f8bc1

Please sign in to comment.