mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-31 13:14:02 +00:00
Another pass at fixing up references
This commit is contained in:
@ -15,7 +15,7 @@ function square($x)
|
||||
return $x * $x;
|
||||
}
|
||||
|
||||
function sum($itemsToSum, $funcName )
|
||||
function sum(array $itemsToSum, $funcName )
|
||||
{
|
||||
$mappedItems = array_map($funcName, $itemsToSum);
|
||||
return array_sum($mappedItems);
|
||||
|
Reference in New Issue
Block a user