Changeset View
Changeset View
Standalone View
Standalone View
src/app/Utils.php
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | class Utils | ||||
/** | /** | ||||
* Returns a UUID in the form of a string. | * Returns a UUID in the form of a string. | ||||
* | * | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
public static function uuidStr(): string | public static function uuidStr(): string | ||||
{ | { | ||||
return (string) Uuid::uuid4(); | return Uuid::uuid4()->toString(); | ||||
} | } | ||||
private static function combine($input, $r, $index, $data, $i, &$output): void | private static function combine($input, $r, $index, $data, $i, &$output): void | ||||
{ | { | ||||
$n = count($input); | $n = count($input); | ||||
// Current cobination is ready | // Current cobination is ready | ||||
if ($index == $r) { | if ($index == $r) { | ||||
Show All 18 Lines |