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 the Carbon package. * * (c)..
Decoded Output download
<?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Carbon\CarbonInterface;
trait CarbonTimezoneTrait
{
public function toAppTz(bool $shift = false, string $tz = 'UTC'): CarbonInterface
{
return $shift
? $this->shiftTimezone($tz)
: $this->timezone($tz);
}
public function copyWithAppTz(bool $shift = false, string $tz = 'UTC'): CarbonInterface
{
return ($shift
? $this->shiftTimezone($tz)
: $this->timezone($tz)
)->copy();
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Carbon\CarbonInterface;
trait CarbonTimezoneTrait
{
public function toAppTz(bool $shift = false, string $tz = 'UTC'): CarbonInterface
{
return $shift
? $this->shiftTimezone($tz)
: $this->timezone($tz);
}
public function copyWithAppTz(bool $shift = false, string $tz = 'UTC'): CarbonInterface
{
return ($shift
? $this->shiftTimezone($tz)
: $this->timezone($tz)
)->copy();
}
}
Function Calls
None |
Stats
MD5 | 30589f9dd8b40b377571edc26e7e02ba |
Eval Count | 0 |
Decode Time | 124 ms |