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); /* * This file is part of PHP CS Fixer. * * (c) Fabien..
Decoded Output download
<?php
declare(strict_types=1);
/*
* This file is part of PHP CS Fixer.
*
* (c) Fabien Potencier <[email protected]>
* Dariusz Rumiski <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace PhpCsFixer\Runner\Parallel;
/**
* Represents identifier of single process that is handled within parallel run.
*
* @author Greg Korba <[email protected]>
*
* @internal
*/
final class ProcessIdentifier
{
private const IDENTIFIER_PREFIX = 'php-cs-fixer_parallel_';
private string $identifier;
private function __construct(string $identifier)
{
$this->identifier = $identifier;
}
public function toString(): string
{
return $this->identifier;
}
public static function create(): self
{
return new self(uniqid(self::IDENTIFIER_PREFIX, true));
}
public static function fromRaw(string $identifier): self
{
if (!str_starts_with($identifier, self::IDENTIFIER_PREFIX)) {
throw new ParallelisationException(sprintf('Invalid process identifier "%s".', $identifier));
}
return new self($identifier);
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
/*
* This file is part of PHP CS Fixer.
*
* (c) Fabien Potencier <[email protected]>
* Dariusz Rumiski <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace PhpCsFixer\Runner\Parallel;
/**
* Represents identifier of single process that is handled within parallel run.
*
* @author Greg Korba <[email protected]>
*
* @internal
*/
final class ProcessIdentifier
{
private const IDENTIFIER_PREFIX = 'php-cs-fixer_parallel_';
private string $identifier;
private function __construct(string $identifier)
{
$this->identifier = $identifier;
}
public function toString(): string
{
return $this->identifier;
}
public static function create(): self
{
return new self(uniqid(self::IDENTIFIER_PREFIX, true));
}
public static function fromRaw(string $identifier): self
{
if (!str_starts_with($identifier, self::IDENTIFIER_PREFIX)) {
throw new ParallelisationException(sprintf('Invalid process identifier "%s".', $identifier));
}
return new self($identifier);
}
}
Function Calls
None |
Stats
MD5 | 9ee9e4f2e6733c589b33155cf65a8a11 |
Eval Count | 0 |
Decode Time | 101 ms |