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 declare(strict_types=1); use Migrations\AbstractMigration; class V340AddFoldersRel..

Decoded Output download

<?php
declare(strict_types=1);

use Migrations\AbstractMigration;

class V340AddFoldersRelationsExtraIndexes extends AbstractMigration
{
    /**
     * Up Method.
     *
     * More information on this method is available here:
     * https://book.cakephp.org/phinx/0/en/migrations.html#the-up-method
     * @return void
     */
    public function up()
    {
        $this->table('folders_relations')
            ->addIndex([
                'foreign_model',
                'foreign_id',
                'user_id',
            ])
            ->addIndex([
                'user_id',
                'foreign_id',
            ])
            ->save();
    }

    /**
     * Down Method.
     *
     * More information on this method is available here:
     * https://book.cakephp.org/phinx/0/en/migrations.html#the-down-method
     * @return void
     */
    public function down()
    {
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
declare(strict_types=1);

use Migrations\AbstractMigration;

class V340AddFoldersRelationsExtraIndexes extends AbstractMigration
{
    /**
     * Up Method.
     *
     * More information on this method is available here:
     * https://book.cakephp.org/phinx/0/en/migrations.html#the-up-method
     * @return void
     */
    public function up()
    {
        $this->table('folders_relations')
            ->addIndex([
                'foreign_model',
                'foreign_id',
                'user_id',
            ])
            ->addIndex([
                'user_id',
                'foreign_id',
            ])
            ->save();
    }

    /**
     * Down Method.
     *
     * More information on this method is available here:
     * https://book.cakephp.org/phinx/0/en/migrations.html#the-down-method
     * @return void
     */
    public function down()
    {
    }
}

Function Calls

None

Variables

None

Stats

MD5 55e109aedfe5690af5db9d51328ee5f8
Eval Count 0
Decode Time 105 ms