Skip to content

Commit

Permalink
Revert "Use mockable get instead of get contents"
Browse files Browse the repository at this point in the history
This reverts commit d66537d.
  • Loading branch information
caendesilva committed Jun 26, 2024
1 parent d66537d commit 85314bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/framework/src/Support/Includes.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static function get(string $filename, ?string $default = null): ?string
return $default;
}

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

/**
Expand All @@ -69,7 +69,7 @@ public static function html(string $filename, ?string $default = null): ?string
return $default === null ? null : $default;
}

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

/**
Expand All @@ -87,7 +87,7 @@ public static function markdown(string $filename, ?string $default = null): ?str
return $default === null ? null : Markdown::render($default);
}

return Markdown::render(Filesystem::get($path));
return Markdown::render(Filesystem::getContents($path));
}

/**
Expand All @@ -105,7 +105,7 @@ public static function blade(string $filename, ?string $default = null): ?string
return $default === null ? null : Blade::render($default);
}

return Blade::render(Filesystem::get($path));
return Blade::render(Filesystem::getContents($path));
}

protected static function normalizePath(string $filename, string $extension): string
Expand Down

0 comments on commit 85314bf

Please sign in to comment.