Skip to content

Commit

Permalink
nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Dec 2, 2024
1 parent e5688ba commit 02e11c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Console/Commands/StaticWarm.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Psr7\Response;
use Illuminate\Console\Command;
use Illuminate\Http\Request as HttpRequest;
use Illuminate\Routing\Route;
use Illuminate\Support\Collection;
use Statamic\Console\EnhancesCommands;
Expand Down Expand Up @@ -179,9 +180,7 @@ private function uris(): Collection
->merge($this->additionalUris())
->unique()
->reject(function ($uri) use ($cacher) {
if ($this->option('uncached') &&
$cacher->hasCachedPage(\Illuminate\Http\Request::create($uri))
) {
if ($this->option('uncached') && $cacher->hasCachedPage(HttpRequest::create($uri))) {
return true;
}

Expand Down

0 comments on commit 02e11c2

Please sign in to comment.