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 namespace Spatie\MediaLibrary\Support\UrlGenerator; use DateTimeInterface; use Ill..
Decoded Output download
<?php
namespace Spatie\MediaLibrary\Support\UrlGenerator;
use DateTimeInterface;
use Illuminate\Support\Str;
class DefaultUrlGenerator extends BaseUrlGenerator
{
public function getUrl(): string
{
$url = $this->getDisk()->url($this->getPathRelativeToRoot());
return $this->versionUrl($url);
}
public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string
{
return $this->getDisk()->temporaryUrl($this->getPathRelativeToRoot(), $expiration, $options);
}
public function getBaseMediaDirectoryUrl(): string
{
return $this->getDisk()->url('/');
}
public function getPath(): string
{
return $this->getRootOfDisk().$this->getPathRelativeToRoot();
}
public function getResponsiveImagesDirectoryUrl(): string
{
$path = $this->pathGenerator->getPathForResponsiveImages($this->media);
return Str::finish($this->getDisk()->url($path), '/');
}
protected function getRootOfDisk(): string
{
return $this->getDisk()->path('/');
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Spatie\MediaLibrary\Support\UrlGenerator;
use DateTimeInterface;
use Illuminate\Support\Str;
class DefaultUrlGenerator extends BaseUrlGenerator
{
public function getUrl(): string
{
$url = $this->getDisk()->url($this->getPathRelativeToRoot());
return $this->versionUrl($url);
}
public function getTemporaryUrl(DateTimeInterface $expiration, array $options = []): string
{
return $this->getDisk()->temporaryUrl($this->getPathRelativeToRoot(), $expiration, $options);
}
public function getBaseMediaDirectoryUrl(): string
{
return $this->getDisk()->url('/');
}
public function getPath(): string
{
return $this->getRootOfDisk().$this->getPathRelativeToRoot();
}
public function getResponsiveImagesDirectoryUrl(): string
{
$path = $this->pathGenerator->getPathForResponsiveImages($this->media);
return Str::finish($this->getDisk()->url($path), '/');
}
protected function getRootOfDisk(): string
{
return $this->getDisk()->path('/');
}
}
Function Calls
None |
Stats
MD5 | 614447e30fcd9b056962ab7a83464d0e |
Eval Count | 0 |
Decode Time | 80 ms |