Skip to content

Commit

Permalink
Use blank instead of negated filled for inverted condition
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 27, 2023
1 parent 1f8c4b2 commit 4a807fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Hyde\Foundation\Facades\Routes;
use Hyde\Framework\Concerns\TracksExecutionTime;

use function filled;
use function blank;
use function filemtime;
use function in_array;
use function date;
Expand Down Expand Up @@ -110,7 +110,7 @@ protected function resolveRouteLink(Route $route): string
{
$baseUrl = Config::getNullableString('hyde.url');

if (! filled($baseUrl) || str_starts_with($baseUrl, 'http://localhost')) {
if (blank($baseUrl) || str_starts_with($baseUrl, 'http://localhost')) {
// While the sitemap spec requires a full URL, we rather fall back
// to using relative links instead of using localhost links.

Expand Down

0 comments on commit 4a807fd

Please sign in to comment.