mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +01:00
updated test
This commit is contained in:
parent
11dd03b9e6
commit
21d105627e
@ -81,7 +81,8 @@ foreach ($sws->getTournament()->getRanking() as $player) {
|
|||||||
echo str_pad($player->getName() . '(' . $player->getElo($sws->getTournament()->getPriorityElo()) . ') ', 35) . implode_pad(' ', $player->getTiebreaks(), 5, ' ') . PHP_EOL;
|
echo str_pad($player->getName() . '(' . $player->getElo($sws->getTournament()->getPriorityElo()) . ') ', 35) . implode_pad(' ', $player->getTiebreaks(), 5, ' ') . PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
function implode_pad ($glue, $collection, $padlength, $padstring): string {
|
function implode_pad($glue, $collection, $padlength, $padstring): string
|
||||||
|
{
|
||||||
$newarray = [];
|
$newarray = [];
|
||||||
foreach ($collection as $elem) {
|
foreach ($collection as $elem) {
|
||||||
$newarray[] = str_pad($elem, $padlength, $padstring);
|
$newarray[] = str_pad($elem, $padlength, $padstring);
|
||||||
|
Loading…
Reference in New Issue
Block a user