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 Sstalle\php7cc\CompatibilityViolation; use Symfony\Component\Finder\SplF..
Decoded Output download
<?php
namespace Sstalle\php7cc\CompatibilityViolation;
use Symfony\Component\Finder\SplFileInfo;
class FileContext extends AbstractContext
{
/**
* @var SplFileInfo
*/
protected $file;
/**
* @var bool
*/
protected $useRelativePaths;
/**
* @param SplFileInfo $file
* @param bool $useRelativePaths
*/
public function __construct(SplFileInfo $file, $useRelativePaths)
{
$this->file = $file;
$this->useRelativePaths = $useRelativePaths;
}
/**
* @return SplFileInfo
*/
public function getFile()
{
return $this->file;
}
/**
* {@inheritdoc}
*/
public function getCheckedResourceName()
{
$file = $this->getFile();
return $this->useRelativePaths ? $file->getRelativePathname() : $file->getRealPath();
}
/**
* {@inheritdoc}
*/
public function getCheckedCode()
{
return $this->getFile()->getContents();
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Sstalle\php7cc\CompatibilityViolation;
use Symfony\Component\Finder\SplFileInfo;
class FileContext extends AbstractContext
{
/**
* @var SplFileInfo
*/
protected $file;
/**
* @var bool
*/
protected $useRelativePaths;
/**
* @param SplFileInfo $file
* @param bool $useRelativePaths
*/
public function __construct(SplFileInfo $file, $useRelativePaths)
{
$this->file = $file;
$this->useRelativePaths = $useRelativePaths;
}
/**
* @return SplFileInfo
*/
public function getFile()
{
return $this->file;
}
/**
* {@inheritdoc}
*/
public function getCheckedResourceName()
{
$file = $this->getFile();
return $this->useRelativePaths ? $file->getRelativePathname() : $file->getRealPath();
}
/**
* {@inheritdoc}
*/
public function getCheckedCode()
{
return $this->getFile()->getContents();
}
}
Function Calls
None |
Stats
MD5 | 1364d7153203ab09efc2e5a4f782fd76 |
Eval Count | 0 |
Decode Time | 114 ms |