chore: cleanup, add PHPStan type annotations

This commit is contained in:
Björn Fromme committed 2026-04-03 13:45:41 +02:00
1 parent a264526127
commit fce6d1615a
14 files changed
+91 -41

No files matched your search

-12
View File
@@ -38,18 +38,6 @@ class AppRuntime implements RuntimeExtensionInterface
) {
}
public function fileIconFilter(Environment $environment, string $mimeType, ?string $classes = 'w-4 h-4'): string
{
$icon = match ($mimeType) {
'application/pdf' => 'pdf',
'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => 'excel',
'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => 'word',
default => 'download',
};
return $this->renderIcon($environment, $icon, $classes);
}
public function formatBytes(int $bytes, ?int $precision = 2): string
{
if (0 === $bytes) {