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\Console\View\Components\Mutators; class EnsureRelativePaths {..
Decoded Output download
<?php
namespace Illuminate\Console\View\Components\Mutators;
class EnsureRelativePaths
{
/**
* Ensures the given string only contains relative paths.
*
* @param string $string
* @return string
*/
public function __invoke($string)
{
if (function_exists('app') && app()->has('path.base')) {
$string = str_replace(base_path().'/', '', $string);
}
return $string;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Illuminate\Console\View\Components\Mutators;
class EnsureRelativePaths
{
/**
* Ensures the given string only contains relative paths.
*
* @param string $string
* @return string
*/
public function __invoke($string)
{
if (function_exists('app') && app()->has('path.base')) {
$string = str_replace(base_path().'/', '', $string);
}
return $string;
}
}
Function Calls
None |
Stats
MD5 | 51715165bae4c0caf5821d1240242bdd |
Eval Count | 0 |
Decode Time | 120 ms |