Fix code style

This commit is contained in:
Art4 2025-02-04 10:50:06 +00:00
parent 105f848dd7
commit a276337752
2 changed files with 18 additions and 18 deletions

View file

@ -84,13 +84,13 @@ final class AddonInfo
string $version,
string $status,
) {
$this->id = $id;
$this->name = $name;
$this->id = $id;
$this->name = $name;
$this->description = $description;
$this->author = $author;
$this->maintainer = $maintainer;
$this->version = $version;
$this->status = $status;
$this->author = $author;
$this->maintainer = $maintainer;
$this->version = $version;
$this->status = $status;
}
public function getId(): string

View file

@ -96,28 +96,28 @@ class Details extends BaseAdmin
$t = Renderer::getMarkupTemplate('admin/addons/details.tpl');
return Renderer::replaceMacros($t, [
'$title' => DI::l10n()->t('Administration'),
'$page' => DI::l10n()->t('Addons'),
'$toggle' => DI::l10n()->t('Toggle'),
'$title' => DI::l10n()->t('Administration'),
'$page' => DI::l10n()->t('Addons'),
'$toggle' => DI::l10n()->t('Toggle'),
'$settings' => DI::l10n()->t('Settings'),
'$addon' => $addon,
'$addon' => $addon,
'$status' => $status,
'$action' => $action,
'$info' => [
'name' => $addonInfo->getName(),
'version' => $addonInfo->getVersion(),
'$info' => [
'name' => $addonInfo->getName(),
'version' => $addonInfo->getVersion(),
'description' => $addonInfo->getDescription(),
'author' => $addonInfo->getAuthor(),
'maintainer' => $addonInfo->getMaintainer(),
'author' => $addonInfo->getAuthor(),
'maintainer' => $addonInfo->getMaintainer(),
],
'$str_author' => DI::l10n()->t('Author: '),
'$str_author' => DI::l10n()->t('Author: '),
'$str_maintainer' => DI::l10n()->t('Maintainer: '),
'$admin_form' => $admin_form,
'$function' => 'addons',
'$function' => 'addons',
'$screenshot' => '',
'$readme' => $readme,
'$readme' => $readme,
'$form_security_token' => self::getFormSecurityToken('admin_addons_details'),
]);