$89 GRAYBYTE WORDPRESS FILE MANAGER $42

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravetechrwanda/itiministry.org/plugins/give/src/DonationForms/Rules/

HOME
Current File : /home/bravetechrwanda/itiministry.org/plugins/give/src/DonationForms/Rules//PhoneIntlInputRule.php
<?php

namespace Give\DonationForms\Rules;

use Closure;
use Give\Helpers\IntlTelInput;
use Give\Vendors\StellarWP\Validation\Contracts\ValidationRule;

/**
 * @since 3.9.0
 */
class PhoneIntlInputRule implements ValidationRule
{
    /**
     * @since 3.9.0
     */
    public static function id(): string
    {
        return 'intl-input';
    }

    /**
     * @since 3.9.0
     */
    public static function fromString(string $options = null): ValidationRule
    {
        return new self();
    }

    /**
     * It handles the possible error codes returned by the getValidationError() intl function.
     *
     * 0|4 = Invalid number
     * 1 = Invalid country code
     * 2 = Too short
     * 3 = Too long
     *
     * @see https://intl-tel-input.com/examples/validation.html
     *
     * @since 3.9.0
     */
    public function __invoke($value, Closure $fail, string $key, array $values)
    {
        $errorMap = IntlTelInput::getErrorMap();

        if ($value && 1 === strlen($value) && array_key_exists(absint($value), $errorMap)) {
            $errorCode = absint($value) ?? 0;
            $fail($errorMap[$errorCode]);
        }
    }
}

Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 May 2026 4.20 PM
bravetechrwanda / bravetechrwanda
0755
ArrayRule.php
1.287 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
AuthenticationRule.php
0.661 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
BillingAddressCityRule.php
0.747 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
BillingAddressStateRule.php
0.746 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
BillingAddressZipRule.php
0.748 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
CurrencyRule.php
2.216 KB
1 Oct 2025 3.37 PM
bravetechrwanda / bravetechrwanda
0644
DonationTypeRule.php
1.484 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
GatewayRule.php
1.381 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
HoneyPotRule.php
0.956 KB
26 Sep 2024 1.57 AM
bravetechrwanda / bravetechrwanda
0644
Max.php
1.208 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
Min.php
1.208 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
PhoneIntlInputRule.php
1.127 KB
24 Apr 2024 7.56 PM
bravetechrwanda / bravetechrwanda
0644
Size.php
2.574 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
SubscriptionFrequencyRule.php
0.924 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
SubscriptionInstallmentsRule.php
0.93 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644
SubscriptionPeriodRule.php
1.76 KB
16 Oct 2023 9.55 PM
bravetechrwanda / bravetechrwanda
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF