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 Helper; // here you can define custom actions // all public methods decla..

Decoded Output download

<?php
namespace Helper;

// here you can define custom actions
// all public methods declared in helper class will be available in $I

class FactoryHelper extends \Codeception\Module
{
    private $faker, $I;

    // HOOK: used after configuration is loaded
    public function _initialize()
    {
        $this->faker = \Faker\Factory::create();
        $this->I = $this->getModule('WPDb');
    }

    public function haveOnePost()
    {
        return $this->I->havePostInDatabase([
            'post_title' => $this->faker->sentence(),
            'post_status' => 'publish'
        ]);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
namespace Helper;

// here you can define custom actions
// all public methods declared in helper class will be available in $I

class FactoryHelper extends \Codeception\Module
{
    private $faker, $I;

    // HOOK: used after configuration is loaded
    public function _initialize()
    {
        $this->faker = \Faker\Factory::create();
        $this->I = $this->getModule('WPDb');
    }

    public function haveOnePost()
    {
        return $this->I->havePostInDatabase([
            'post_title' => $this->faker->sentence(),
            'post_status' => 'publish'
        ]);
    }
}

Function Calls

None

Variables

None

Stats

MD5 102f611764da3eddc9e28d1abc35b9d7
Eval Count 0
Decode Time 72 ms