Skip to content

Commit

Permalink
refactor: Remove phpstan-ignore
Browse files Browse the repository at this point in the history
khalwat committed Feb 10, 2024
1 parent b4e3280 commit 8ec6713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/PluginTemplate.php
Original file line number Diff line number Diff line change
@@ -60,7 +60,8 @@ public static function renderPluginTemplate(
string $templatePath,
array $params = [],
string $minifier = null,
): string {
): string
{
// Stash the old template mode, and set it Control Panel template mode
$oldMode = Craft::$app->view->getTemplateMode();
try {
@@ -77,7 +78,6 @@ public static function renderPluginTemplate(
/** @var Minify|null $minify */
$minify = Craft::$app->getPlugins()->getPlugin(self::MINIFY_PLUGIN_HANDLE);
if ($minify) {
/** @phpstan-ignore-next-line */
$htmlText = $minify->minify->$minifier($htmlText);
}
}

0 comments on commit 8ec6713

Please sign in to comment.