REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 1.13 KB
Close
/home/getspomw/royalsquad.us/vendor/laravel/prompts/src/Support/Utils.php
Text
Base64
<?php namespace Laravel\Prompts\Support; use Closure; /** * @internal */ class Utils { /** * Determine if all items in an array match a truth test. * * @param array<array-key, mixed> $values */ public static function allMatch(array $values, Closure $callback): bool { foreach ($values as $key => $value) { if (! $callback($value, $key)) { return false; } } return true; } /** * Get the last item from an array or null if it doesn't exist. * * @param array<array-key, mixed> $array */ public static function last(array $array): mixed { return array_reverse($array)[0] ?? null; } /** * Returns the key of the first element in the array that satisfies the callback. * * @param array<array-key, mixed> $array */ public static function search(array $array, Closure $callback): int|string|false { foreach ($array as $key => $value) { if ($callback($value, $key)) { return $key; } } return false; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Result.php
461 B
lrw-rw-rw-
2025-09-17 06:52:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Utils.php
1.13 KB
lrw-rw-rw-
2025-09-17 06:52:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).