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 Illuminate\Tests\View\Blade; class BladeHasSectionTest extends AbstractB..

Decoded Output download

<?php

namespace Illuminate\Tests\View\Blade;

class BladeHasSectionTest extends AbstractBladeTestCase
{
    public function testHasSectionStatementsAreCompiled()
    {
        $string = '@hasSection("section")
breeze
@endif';
        $expected = '<?php if (! empty(trim($__env->yieldContent("section")))): ?>
breeze
<?php endif; ?>';
        $this->assertEquals($expected, $this->compiler->compileString($string));
    }
}

Did this file decode correctly?

Original Code

<?php

namespace Illuminate\Tests\View\Blade;

class BladeHasSectionTest extends AbstractBladeTestCase
{
    public function testHasSectionStatementsAreCompiled()
    {
        $string = '@hasSection("section")
breeze
@endif';
        $expected = '<?php if (! empty(trim($__env->yieldContent("section")))): ?>
breeze
<?php endif; ?>';
        $this->assertEquals($expected, $this->compiler->compileString($string));
    }
}

Function Calls

None

Variables

None

Stats

MD5 1514a5ed6fc4a6a35794a61ab1068d5b
Eval Count 0
Decode Time 95 ms