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 /** * @link https://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Soft..
Decoded Output download
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
return <<<CODE
<?php
{$namespace}use yii\db\Migration;
/**
* Handles the creation of table `{{%test}}`.
*/
class {$class} extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
\$this->createTable('{{%test}}', [
'id' => \$this->primaryKey(),
'title' => \$this->string(10)->notNull()->unique()->defaultValue("test")->after("id"),
'body' => \$this->text()->notNull()->defaultValue("test")->after("title"),
'address' => \$this->text()->notNull()->defaultValue("test")->after("body"),
'address2' => \$this->text()->notNull()->defaultValue('te:st')->after("address"),
'address3' => \$this->text()->notNull()->defaultValue(':te:st:')->after("address2"),
]);
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
\$this->dropTable('{{%test}}');
}
}
CODE;
?>
Did this file decode correctly?
Original Code
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
return <<<CODE
<?php
{$namespace}use yii\db\Migration;
/**
* Handles the creation of table `{{%test}}`.
*/
class {$class} extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
\$this->createTable('{{%test}}', [
'id' => \$this->primaryKey(),
'title' => \$this->string(10)->notNull()->unique()->defaultValue("test")->after("id"),
'body' => \$this->text()->notNull()->defaultValue("test")->after("title"),
'address' => \$this->text()->notNull()->defaultValue("test")->after("body"),
'address2' => \$this->text()->notNull()->defaultValue('te:st')->after("address"),
'address3' => \$this->text()->notNull()->defaultValue(':te:st:')->after("address2"),
]);
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
\$this->dropTable('{{%test}}');
}
}
CODE;
Function Calls
None |
Stats
MD5 | e4a9c7e58d5f42052efe45064a379174 |
Eval Count | 0 |
Decode Time | 107 ms |