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 BladeElseAuthStatementsTest extends A..
Decoded Output download
<?php
namespace Illuminate\Tests\View\Blade;
class BladeElseAuthStatementsTest extends AbstractBladeTestCase
{
public function testElseAuthStatementsAreCompiled()
{
$string = '@auth("api")
breeze
@elseauth("standard")
wheeze
@endauth';
$expected = '<?php if(auth()->guard("api")->check()): ?>
breeze
<?php elseif(auth()->guard("standard")->check()): ?>
wheeze
<?php endif; ?>';
$this->assertEquals($expected, $this->compiler->compileString($string));
}
public function testPlainElseAuthStatementsAreCompiled()
{
$string = '@auth("api")
breeze
@elseauth
wheeze
@endauth';
$expected = '<?php if(auth()->guard("api")->check()): ?>
breeze
<?php elseif(auth()->guard()->check()): ?>
wheeze
<?php endif; ?>';
$this->assertEquals($expected, $this->compiler->compileString($string));
}
}
Did this file decode correctly?
Original Code
<?php
namespace Illuminate\Tests\View\Blade;
class BladeElseAuthStatementsTest extends AbstractBladeTestCase
{
public function testElseAuthStatementsAreCompiled()
{
$string = '@auth("api")
breeze
@elseauth("standard")
wheeze
@endauth';
$expected = '<?php if(auth()->guard("api")->check()): ?>
breeze
<?php elseif(auth()->guard("standard")->check()): ?>
wheeze
<?php endif; ?>';
$this->assertEquals($expected, $this->compiler->compileString($string));
}
public function testPlainElseAuthStatementsAreCompiled()
{
$string = '@auth("api")
breeze
@elseauth
wheeze
@endauth';
$expected = '<?php if(auth()->guard("api")->check()): ?>
breeze
<?php elseif(auth()->guard()->check()): ?>
wheeze
<?php endif; ?>';
$this->assertEquals($expected, $this->compiler->compileString($string));
}
}
Function Calls
None |
Stats
MD5 | 50837d0fbcf98d35a3a374f07242f695 |
Eval Count | 0 |
Decode Time | 104 ms |