Skip to content

Commit

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

protected static function getFileContents(string $path): ?string
{
$path = static::path($path);

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

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

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

0 comments on commit 76b35dc

Please sign in to comment.