/home/kueuepay/public_html/vendor/spatie/flare-client-php/src/Truncation/ReportTrimmer.php
<?php

namespace Spatie\FlareClient\Truncation;

class ReportTrimmer
{
    protected static int $maxPayloadSize = 524288;

    /** @var array<int, class-string<\Spatie\FlareClient\Truncation\TruncationStrategy>> */
    protected array $strategies = [
        TrimStringsStrategy::class,
        TrimStackFrameArgumentsStrategy::class,
        TrimContextItemsStrategy::class,
    ];

    /**
     * @param array<int|string, mixed> $payload
     *
     * @return array<int|string, mixed>
     */
    public function trim(array $payload): array
    {
        foreach ($this->strategies as $strategy) {
            if (! $this->needsToBeTrimmed($payload)) {
                break;
            }

            $payload = (new $strategy($this))->execute($payload);
        }

        return $payload;
    }

    /**
     * @param array<int|string, mixed> $payload
     *
     * @return bool
     */
    public function needsToBeTrimmed(array $payload): bool
    {
        return strlen((string)json_encode($payload)) > self::getMaxPayloadSize();
    }

    public static function getMaxPayloadSize(): int
    {
        return self::$maxPayloadSize;
    }

    public static function setMaxPayloadSize(int $maxPayloadSize): void
    {
        self::$maxPayloadSize = $maxPayloadSize;
    }
}
Transfer Money
top

Effortless and Secure Money Transfers

Our transfer system provides a seamless and secure way to move your funds. Enjoy a straightforward process with top-notch security features, ensuring that sending money to friends, family, or businesses is both quick and worry-free. Experience smooth transactions with confidence, knowing that your security is our highest priority.

  • Access the Transfer Section: Open the transfer section on our website or app.
  • Choose a Recipient: Select the recipient from your contacts or manually enter their details.
  • Enter the Amount: Specify the amount you want to transfer.
  • Authorize the Transfer: Confirm the transaction using your PIN or biometric authentication.
  • Receive Confirmation: Get a confirmation message indicating that your transfer was successful.
img