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\WebDAV; use Sabre\DAV\Client; ..

Decoded Output download

<?php
declare(strict_types=1);

namespace League\Flysystem\WebDAV;

use Sabre\DAV\Client;

class UrlPrefixingClientStub extends Client
{
    /**
     * @param string $url
     */
    public function propFind($url, array $properties, $depth = 0): array
    {
        $response = parent::propFind($url, $properties, $depth);

        if ($depth === 0) {
            return $response;
        }

        $formatted = [];

        foreach ($response as $path => $object) {
            $formatted['https://domain.tld/' . ltrim($path, '/')] = $object;
        }

        return $formatted;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
declare(strict_types=1);

namespace League\Flysystem\WebDAV;

use Sabre\DAV\Client;

class UrlPrefixingClientStub extends Client
{
    /**
     * @param string $url
     */
    public function propFind($url, array $properties, $depth = 0): array
    {
        $response = parent::propFind($url, $properties, $depth);

        if ($depth === 0) {
            return $response;
        }

        $formatted = [];

        foreach ($response as $path => $object) {
            $formatted['https://domain.tld/' . ltrim($path, '/')] = $object;
        }

        return $formatted;
    }
}

Function Calls

None

Variables

None

Stats

MD5 3e2b0014b19c8d52596cfeaf833bdadb
Eval Count 0
Decode Time 91 ms