Skip to content

Commit

Permalink
Introduce local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 26, 2024
1 parent ea93261 commit 83b2480
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/framework/src/Support/Includes.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ protected static function normalizePath(string $filename, string $extension = ''

protected static function getFileContents(string $path): ?string
{
if (! Filesystem::exists(static::path($path))) {
$path = static::path($path);

if (! Filesystem::exists($path)) {
return null;
}

return Filesystem::get(static::path($path));
return Filesystem::get($path);
}

protected static function renderHtml(string $html): HtmlString
Expand Down

0 comments on commit 83b2480

Please sign in to comment.