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 declare(strict_types=1); /** * @license Apache 2.0 */ namespace OpenApi\Tools\CS..
Decoded Output download
<?php declare(strict_types=1);
/**
* @license Apache 2.0
*/
namespace OpenApi\Tools\CSFixer;
trait ScopedTrait
{
protected array $scopes = [];
public function supports(\SplFileInfo $file): bool
{
return parent::supports($file) && $this->isScoped($file);
}
public function scope(array $scopes): static
{
$this->scopes = $scopes;
return $this;
}
public function isScoped(\SplFileInfo $file): bool
{
foreach ($this->scopes as $scope) {
if (false !== strpos($file->getPath(), $scope)) {
return true;
}
}
return false;
}
}
?>
Did this file decode correctly?
Original Code
<?php declare(strict_types=1);
/**
* @license Apache 2.0
*/
namespace OpenApi\Tools\CSFixer;
trait ScopedTrait
{
protected array $scopes = [];
public function supports(\SplFileInfo $file): bool
{
return parent::supports($file) && $this->isScoped($file);
}
public function scope(array $scopes): static
{
$this->scopes = $scopes;
return $this;
}
public function isScoped(\SplFileInfo $file): bool
{
foreach ($this->scopes as $scope) {
if (false !== strpos($file->getPath(), $scope)) {
return true;
}
}
return false;
}
}
Function Calls
None |
Stats
MD5 | 44c69b675e4a3f05bb4af3b1206df079 |
Eval Count | 0 |
Decode Time | 124 ms |