app/Http/Middleware/UserCliente.php
/**
     * Reverses input hex
     *
     * @param  string  $string  Hex string to reverse
     *
     * @return string
     */
Reverses input hex
@param  string  $string  Hex string to reverse

@return string
Reverses input hex @param string $string Hex string to reverse @return string
private function reverseHex(string $string): string
    {
        for ($i = 0, $length = strlen($string); $i < $length; $i += 2) {
            $bytes[] = substr($string, $i, 2);
        }
        return implode(array_reverse($bytes ?? []));
    }
private function reverseHex ( string $ string ) : string { for ( $ i = 0 , $ length = strlen ( $ string ) ; $ i < $ length ; $ i += 2 ) { $ bytes [ ] = substr ( $ string , $ i , 2 ) ; } return implode ( array_reverse ( $ bytes ?? [ ] ) ) ; }
Reverses input hex
 @param  string  $string  Hex string to reverse
Reverses input hex @param string $string Hex string to reverse