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); namespace App\Utility\AuthToken; class AuthTokenExpiryCon..
Decoded Output download
<?php
declare(strict_types=1);
namespace App\Utility\AuthToken;
class AuthTokenExpiryConfigValidator
{
/**
* @param string|null $expiry Expiry
* @return string|null
*/
public function __invoke(?string $expiry = null)
{
if (is_null($expiry)) {
return null;
}
if (preg_match('/^[0-9]+ (year|month|day|hour|minute|second)/', $expiry)) {
return $expiry;
}
return null;
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace App\Utility\AuthToken;
class AuthTokenExpiryConfigValidator
{
/**
* @param string|null $expiry Expiry
* @return string|null
*/
public function __invoke(?string $expiry = null)
{
if (is_null($expiry)) {
return null;
}
if (preg_match('/^[0-9]+ (year|month|day|hour|minute|second)/', $expiry)) {
return $expiry;
}
return null;
}
}
Function Calls
None |
Stats
MD5 | 50a02beaa7bec13b30b9910adf816191 |
Eval Count | 0 |
Decode Time | 124 ms |