Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Faker\Provider\cs_CZ; /** * Czech months and days without setting local..

Decoded Output download

<?php

namespace Faker\Provider\cs_CZ;

/**
 * Czech months and days without setting locale
 */
class DateTime extends \Faker\Provider\DateTime
{
    protected static $days = array(
        'nedle', 'pondl', 'ter', 'steda', 'tvrtek', 'ptek', 'sobota'
    );
    protected static $months = array(
        'leden', 'nor', 'bezen', 'duben', 'kvten', 'erven', 'ervenec',
        'srpen', 'z', 'jen', 'listopad', 'prosinec'
    );
    protected static $monthsGenitive  = array(
        'ledna', 'nora', 'bezna', 'dubna', 'kvtna', 'ervna', 'ervence',
        'srpna', 'z', 'jna', 'listopadu', 'prosince'
    );
    protected static $formattedDateFormat = array(
        '{{dayOfMonth}}. {{monthNameGenitive}} {{year}}',
    );

    public static function monthName($max = 'now')
    {
        return static::$months[parent::month($max) - 1];
    }

    public static function monthNameGenitive($max = 'now')
    {
        return static::$monthsGenitive[parent::month($max) - 1];
    }

    public static function dayOfWeek($max = 'now')
    {
        return static::$days[static::dateTime($max)->format('w')];
    }

    /**
     * @param  \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
     * @return string
     * @example '2'
     */
    public static function dayOfMonth($max = 'now')
    {
        return static::dateTime($max)->format('j');
    }

    /**
     * Full date with inflected month
     * @return string
     * @example '16. listopadu 2003'
     */
    public function formattedDate()
    {
        $format = static::randomElement(static::$formattedDateFormat);

        return $this->generator->parse($format);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Faker\Provider\cs_CZ;

/**
 * Czech months and days without setting locale
 */
class DateTime extends \Faker\Provider\DateTime
{
    protected static $days = array(
        'nedle', 'pondl', 'ter', 'steda', 'tvrtek', 'ptek', 'sobota'
    );
    protected static $months = array(
        'leden', 'nor', 'bezen', 'duben', 'kvten', 'erven', 'ervenec',
        'srpen', 'z', 'jen', 'listopad', 'prosinec'
    );
    protected static $monthsGenitive  = array(
        'ledna', 'nora', 'bezna', 'dubna', 'kvtna', 'ervna', 'ervence',
        'srpna', 'z', 'jna', 'listopadu', 'prosince'
    );
    protected static $formattedDateFormat = array(
        '{{dayOfMonth}}. {{monthNameGenitive}} {{year}}',
    );

    public static function monthName($max = 'now')
    {
        return static::$months[parent::month($max) - 1];
    }

    public static function monthNameGenitive($max = 'now')
    {
        return static::$monthsGenitive[parent::month($max) - 1];
    }

    public static function dayOfWeek($max = 'now')
    {
        return static::$days[static::dateTime($max)->format('w')];
    }

    /**
     * @param  \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
     * @return string
     * @example '2'
     */
    public static function dayOfMonth($max = 'now')
    {
        return static::dateTime($max)->format('j');
    }

    /**
     * Full date with inflected month
     * @return string
     * @example '16. listopadu 2003'
     */
    public function formattedDate()
    {
        $format = static::randomElement(static::$formattedDateFormat);

        return $this->generator->parse($format);
    }
}

Function Calls

None

Variables

None

Stats

MD5 4a520a6ad44dbc2356802a95ceabd859
Eval Count 0
Decode Time 106 ms