<commit_before><?php

namespace A1comms\GaeSupportLaravel\Auth\Guard\Combined;

use Illuminate\Http\Request;
use Illuminate\Contracts\Auth\UserProvider;
use A1comms\GaeSupportLaravel\Auth\Guard\IAP_Guard;
use A1comms\GaeSupportLaravel\Auth\Guard\AppEngine_Guard;
use A1comms\GaeSupportLaravel\Auth\Contracts\Guard\StatelessValidator;

class IAP_Guard implements StatelessValidator
{
    /**
     * Authenticate a user based on request information,
     * return a valid user object if successful, or null.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Contracts\Auth\Authenticatable|null
     */
    public static function validate(Request $request, UserProvider $provider = null)
    {
        $result = AppEngine_Guard::validate($request, $provider);
        if (!empty($result)) {
            return $result;
        }

        $result = IAP_Guard::validate($request, $provider);
        if (!empty($result)) {
            return $result;
        }

        return null;
    }
}<commit_msg>Auth: Guard: IAP Combined Fix<commit_after><?php

namespace A1comms\GaeSupportLaravel\Auth\Guard\Combined;

use Illuminate\Http\Request;
use Illuminate\Contracts\Auth\UserProvider;
use A1comms\GaeSupportLaravel\Auth\Guard\IAP_Guard as IAP_Guard_Base;
use A1comms\GaeSupportLaravel\Auth\Guard\AppEngine_Guard;
use A1comms\GaeSupportLaravel\Auth\Contracts\Guard\StatelessValidator;

class IAP_Guard implements StatelessValidator
{
    /**
     * Authenticate a user based on request information,
     * return a valid user object if successful, or null.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Contracts\Auth\Authenticatable|null
     */
    public static function validate(Request $request, UserProvider $provider = null)
    {
        $result = AppEngine_Guard::validate($request, $provider);
        if (!empty($result)) {
            return $result;
        }

        $result = IAP_Guard_Base::validate($request, $provider);
        if (!empty($result)) {
            return $result;
        }

        return null;
    }
}
{'fraction_non_alphanumeric': 0.10376011423131842, 'fraction_numerical': 0.0038077106139933364, 'mean_word_length': 3.2464646464646463, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3314822', 'n_tokens_mistral': 634, 'n_tokens_neox': 637, 'n_words': 130}