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); /** * @package Grav\Framework\File * * @copyright ..
Decoded Output download
<?php
declare(strict_types=1);
/**
* @package Grav\Framework\File
*
* @copyright Copyright (c) 2015 - 2024 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\File;
use RuntimeException;
use function is_string;
/**
* Class File
* @package Grav\Framework\File
*/
class File extends AbstractFile
{
/**
* {@inheritdoc}
* @see FileInterface::save()
*/
public function save($data): void
{
if (!is_string($data)) {
throw new RuntimeException('Cannot save data, string required');
}
parent::save($data);
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
/**
* @package Grav\Framework\File
*
* @copyright Copyright (c) 2015 - 2024 Trilby Media, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\File;
use RuntimeException;
use function is_string;
/**
* Class File
* @package Grav\Framework\File
*/
class File extends AbstractFile
{
/**
* {@inheritdoc}
* @see FileInterface::save()
*/
public function save($data): void
{
if (!is_string($data)) {
throw new RuntimeException('Cannot save data, string required');
}
parent::save($data);
}
}
Function Calls
None |
Stats
MD5 | f51b1779b3e097a0cd5c5ca14d3a85b8 |
Eval Count | 0 |
Decode Time | 111 ms |