Skip to content

Commit

Permalink
Code formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Apr 25, 2023
1 parent b0d5edb commit 9ed0d5e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace League\Glide;

use Closure;
use InvalidArgumentException;
use League\Flysystem\FilesystemException as FilesystemV2Exception;
use League\Flysystem\FilesystemOperator;
Expand Down Expand Up @@ -95,6 +96,7 @@ class Server
* @var array
*/
protected $presets = [];

/**
* Custom cache path callable.
*
Expand Down Expand Up @@ -350,7 +352,7 @@ public function getCacheWithFileExtensions()
*
* @param \Closure|null $cachePathCallable The custom cache path callable. It receives the same arguments as @see getCachePath
*/
public function setCachePathCallable(?\Closure $cachePathCallable)
public function setCachePathCallable(?Closure $cachePathCallable)
{
$this->cachePathCallable = $cachePathCallable;
}
Expand All @@ -377,10 +379,11 @@ public function getCachePath($path, array $params = [])
{
$customCallable = $this->getCachePathCallable();
if (null !== $customCallable) {
$boundCallable = \Closure::bind($customCallable, $this, self::class);
$boundCallable = Closure::bind($customCallable, $this, static::class);

return $boundCallable($path, $params);
}

$sourcePath = $this->getSourcePath($path);

if ($this->sourcePathPrefix) {
Expand Down

0 comments on commit 9ed0d5e

Please sign in to comment.