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 League\Flysystem; use RuntimeException; use Th..

Decoded Output download

<?php

declare(strict_types=1);

namespace League\Flysystem;

use RuntimeException;
use Throwable;

final class UnableToGeneratePublicUrl extends RuntimeException implements FilesystemException
{
    public function __construct(string $reason, string $path, ?Throwable $previous = null)
    {
        parent::__construct("Unable to generate public url for $path: $reason", 0, $previous);
    }

    public static function dueToError(string $path, Throwable $exception): static
    {
        return new static($exception->getMessage(), $path, $exception);
    }

    public static function noGeneratorConfigured(string $path, string $extraReason = ''): static
    {
        return new static('No generator was configured ' . $extraReason, $path);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace League\Flysystem;

use RuntimeException;
use Throwable;

final class UnableToGeneratePublicUrl extends RuntimeException implements FilesystemException
{
    public function __construct(string $reason, string $path, ?Throwable $previous = null)
    {
        parent::__construct("Unable to generate public url for $path: $reason", 0, $previous);
    }

    public static function dueToError(string $path, Throwable $exception): static
    {
        return new static($exception->getMessage(), $path, $exception);
    }

    public static function noGeneratorConfigured(string $path, string $extraReason = ''): static
    {
        return new static('No generator was configured ' . $extraReason, $path);
    }
}

Function Calls

None

Variables

None

Stats

MD5 eaf78e7e05b0b5e559ee61a0b8ff8f76
Eval Count 0
Decode Time 87 ms