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 /** * This view is used by console/controllers/MigrateController.php. * * The fo..
Decoded Output download
<?php
/**
* This view is used by console/controllers/MigrateController.php.
*
* The following variables are available in this view:
*/
/* @var $className string the new migration class name without namespace */
/* @var $namespace string the new migration class namespace */
echo "<?php
";
if (!empty($namespace)) {
echo "
namespace {$namespace};
";
}
?>
use yii\db\Migration;
/**
* Class <?= $className . "
" ?>
*/
class <?= $className ?> extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
echo "<?= $className ?> cannot be reverted.
";
return false;
}
/*
// Use up()/down() to run migration code without a transaction.
public function up()
{
}
public function down()
{
echo "<?= $className ?> cannot be reverted.
";
return false;
}
*/
}
Did this file decode correctly?
Original Code
<?php
/**
* This view is used by console/controllers/MigrateController.php.
*
* The following variables are available in this view:
*/
/* @var $className string the new migration class name without namespace */
/* @var $namespace string the new migration class namespace */
echo "<?php\n";
if (!empty($namespace)) {
echo "\nnamespace {$namespace};\n";
}
?>
use yii\db\Migration;
/**
* Class <?= $className . "\n" ?>
*/
class <?= $className ?> extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
echo "<?= $className ?> cannot be reverted.\n";
return false;
}
/*
// Use up()/down() to run migration code without a transaction.
public function up()
{
}
public function down()
{
echo "<?= $className ?> cannot be reverted.\n";
return false;
}
*/
}
Function Calls
None |
Stats
MD5 | 99796bb824d3b8a6f955d3b68df8af24 |
Eval Count | 0 |
Decode Time | 113 ms |