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\ja_JP; class Address extends \Faker\Provider\Address { ..
Decoded Output download
<?php
namespace Faker\Provider\ja_JP;
class Address extends \Faker\Provider\Address
{
protected static $country = array(
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '',
'', '', '', '', '', '', '',
'', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '',
'', '', '', '', '', '', '', '', '',
'', '', '', '',
'', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '',
'',
'', '', '', '', '', '', '', '', '', '', '', '',
'',
'', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '',
'', '', '',
'', '',
'',
'', ''
);
protected static $prefecture = array(
'',
'', '', '', '', '', '',
'', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '',
'', '', '', '', '',
'', '', '', '',
'', '', '', '', '', '', '',
''
);
protected static $ward = array('', '', '', '', '');
protected static $citySuffix = array('');
protected static $wardSuffix = array('');
protected static $streetSuffix = array('');
protected static $postcodeFormats = array('{{postcode1}}{{postcode2}}');
protected static $cityFormats = array(
'{{lastName}}{{citySuffix}}',
);
protected static $streetNameFormats = array(
'{{lastName}}{{streetSuffix}}'
);
protected static $streetAddressFormats = array(
'{{streetName}}{{lastName}}{{areaNumber}}-{{areaNumber}}-{{areaNumber}}'
);
protected static $addressFormats = array(
'{{postcode}} {{prefecture}}{{city}}{{ward}}{{streetAddress}}',
'{{postcode}} {{prefecture}}{{city}}{{ward}}{{streetAddress}} {{secondaryAddress}}'
);
protected static $secondaryAddressFormats = array(
'{{lastName}}{{buildingNumber}}',
'{{lastName}}{{buildingNumber}}'
);
/**
* @example 111
*/
public static function postcode1()
{
return static::numberBetween(100, 999);
}
/**
* @example 2222
*/
public static function postcode2()
{
return static::numberBetween(1000, 9999);
}
/**
* @example 1112222
*/
public static function postcode()
{
$postcode1 = static::postcode1();
$postcode2 = static::postcode2();
return $postcode1 . $postcode2;
}
/**
* @example ''
*/
public static function prefecture()
{
return static::randomElement(static::$prefecture);
}
/**
* @example ''
*/
public static function ward()
{
$ward = static::randomElement(static::$ward);
$suffix = static::randomElement(static::$wardSuffix);
return $ward . $suffix;
}
/**
*
*
* @return int
*/
public static function areaNumber()
{
return static::numberBetween(1, 10);
}
public static function buildingNumber()
{
return static::numberBetween(101, 110);
}
public function secondaryAddress()
{
$format = static::randomElement(static::$secondaryAddressFormats);
return $this->generator->parse($format);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Faker\Provider\ja_JP;
class Address extends \Faker\Provider\Address
{
protected static $country = array(
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '',
'', '', '', '', '', '', '',
'', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '',
'', '', '', '', '', '', '', '', '',
'', '', '', '',
'', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '',
'',
'', '', '', '', '', '', '', '', '', '', '', '',
'',
'', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '',
'', '', '',
'', '',
'',
'', ''
);
protected static $prefecture = array(
'',
'', '', '', '', '', '',
'', '', '', '', '', '', '',
'', '', '', '', '', '', '', '', '',
'', '', '', '', '', '', '',
'', '', '', '', '',
'', '', '', '',
'', '', '', '', '', '', '',
''
);
protected static $ward = array('', '', '', '', '');
protected static $citySuffix = array('');
protected static $wardSuffix = array('');
protected static $streetSuffix = array('');
protected static $postcodeFormats = array('{{postcode1}}{{postcode2}}');
protected static $cityFormats = array(
'{{lastName}}{{citySuffix}}',
);
protected static $streetNameFormats = array(
'{{lastName}}{{streetSuffix}}'
);
protected static $streetAddressFormats = array(
'{{streetName}}{{lastName}}{{areaNumber}}-{{areaNumber}}-{{areaNumber}}'
);
protected static $addressFormats = array(
'{{postcode}} {{prefecture}}{{city}}{{ward}}{{streetAddress}}',
'{{postcode}} {{prefecture}}{{city}}{{ward}}{{streetAddress}} {{secondaryAddress}}'
);
protected static $secondaryAddressFormats = array(
'{{lastName}}{{buildingNumber}}',
'{{lastName}}{{buildingNumber}}'
);
/**
* @example 111
*/
public static function postcode1()
{
return static::numberBetween(100, 999);
}
/**
* @example 2222
*/
public static function postcode2()
{
return static::numberBetween(1000, 9999);
}
/**
* @example 1112222
*/
public static function postcode()
{
$postcode1 = static::postcode1();
$postcode2 = static::postcode2();
return $postcode1 . $postcode2;
}
/**
* @example ''
*/
public static function prefecture()
{
return static::randomElement(static::$prefecture);
}
/**
* @example ''
*/
public static function ward()
{
$ward = static::randomElement(static::$ward);
$suffix = static::randomElement(static::$wardSuffix);
return $ward . $suffix;
}
/**
*
*
* @return int
*/
public static function areaNumber()
{
return static::numberBetween(1, 10);
}
public static function buildingNumber()
{
return static::numberBetween(101, 110);
}
public function secondaryAddress()
{
$format = static::randomElement(static::$secondaryAddressFormats);
return $this->generator->parse($format);
}
}
Function Calls
None |
Stats
MD5 | a996d8b10fe2b0fcf62740180a4b8687 |
Eval Count | 0 |
Decode Time | 102 ms |