Файловый менеджер - Редактировать - /home/easybachat/hisabat365.com/4a7891/flare-client-php.zip
Ðазад
PK ��)[ G� � src/View.phpnu �[��� <?php namespace Spatie\FlareClient; use Symfony\Component\VarDumper\Cloner\VarCloner; use Symfony\Component\VarDumper\Dumper\HtmlDumper; class View { protected string $file; /** @var array<string, mixed> */ protected array $data = []; /** * @param string $file * @param array<string, mixed> $data */ public function __construct(string $file, array $data = []) { $this->file = $file; $this->data = $data; } /** * @param string $file * @param array<string, mixed> $data * * @return self */ public static function create(string $file, array $data = []): self { return new self($file, $data); } protected function dumpViewData(mixed $variable): string { $cloner = new VarCloner(); $dumper = new HtmlDumper(); $dumper->setDumpHeader(''); $output = fopen('php://memory', 'r+b'); if (! $output) { return ''; } $dumper->dump($cloner->cloneVar($variable)->withMaxDepth(1), $output, [ 'maxDepth' => 1, 'maxStringLength' => 160, ]); return (string)stream_get_contents($output, -1, 0); } /** @return array<string, mixed> */ public function toArray(): array { return [ 'file' => $this->file, 'data' => array_map([$this, 'dumpViewData'], $this->data), ]; } } PK ��)[�)?� + src/Support/PhpStackFrameArgumentsFixer.phpnu �[��� <?php namespace Spatie\FlareClient\Support; class PhpStackFrameArgumentsFixer { public function enable(): void { if (! $this->isCurrentlyIgnoringStackFrameArguments()) { return; } ini_set('zend.exception_ignore_args', '0'); } protected function isCurrentlyIgnoringStackFrameArguments(): bool { return match (ini_get('zend.exception_ignore_args')) { '1' => true, '0' => false, default => false, }; } } PK ��)[�C~�A A src/Concerns/HasContext.phpnu �[��� <?php namespace Spatie\FlareClient\Concerns; trait HasContext { protected ?string $messageLevel = null; protected ?string $stage = null; /** * @var array<string, mixed> */ protected array $userProvidedContext = []; public function stage(?string $stage): self { $this->stage = $stage; return $this; } public function messageLevel(?string $messageLevel): self { $this->messageLevel = $messageLevel; return $this; } /** * @param string $groupName * @param mixed $default * * @return array<int, mixed> */ public function getGroup(string $groupName = 'context', $default = []): array { return $this->userProvidedContext[$groupName] ?? $default; } public function context(string $key, mixed $value): self { return $this->group('context', [$key => $value]); } /** * @param string $groupName * @param array<string, mixed> $properties * * @return $this */ public function group(string $groupName, array $properties): self { $group = $this->userProvidedContext[$groupName] ?? []; $this->userProvidedContext[$groupName] = array_merge_recursive_distinct( $group, $properties ); return $this; } } PK ��)[�7�� � src/Concerns/UsesTime.phpnu �[��� <?php namespace Spatie\FlareClient\Concerns; use Spatie\FlareClient\Time\SystemTime; use Spatie\FlareClient\Time\Time; trait UsesTime { public static Time $time; public static function useTime(Time $time): void { self::$time = $time; } public function getCurrentTime(): int { $time = self::$time ?? new SystemTime(); return $time->getCurrentTime(); } } PK ��)[�#hª � src/Context/ContextProvider.phpnu �[��� <?php namespace Spatie\FlareClient\Context; interface ContextProvider { /** * @return array<int, string|mixed> */ public function toArray(): array; } PK ��)[���[� � &