Test fixes
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2024-05-16 02:14:55 +00:00
parent adac80cbbd
commit fd11d5544e
8 changed files with 21 additions and 40 deletions

View File

@ -14,8 +14,6 @@ declare(strict_types=1);
namespace Modules\Tag\Admin;
use Modules\Admin\Models\AccountMapper;
use Modules\Admin\Models\NullAccount;
use phpOMS\Application\ApplicationAbstract;
use phpOMS\Config\SettingsInterface;
use phpOMS\Message\Http\HttpRequest;
@ -42,14 +40,6 @@ final class Installer extends InstallerAbstract
*/
public const PATH = __DIR__;
/**
* {@inheritdoc}
*/
public static function install(ApplicationAbstract $app, ModuleInfo $info, SettingsInterface $cfgHandler) : void
{
parent::install($app, $info, $cfgHandler);
}
/**
* Install data from providing modules.
*
@ -77,7 +67,7 @@ final class Installer extends InstallerAbstract
}
$tagData = \json_decode($tagFile, true) ?? [];
if ($tagData === false) {
if (!\is_array($tagData)) {
throw new \Exception(); // @codeCoverageIgnore
}

View File

@ -1,5 +0,0 @@
# Structure
## ER
![ER](Modules/Tag/Docs/Dev/img/er.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

View File

@ -1,4 +0,0 @@
# User Content
* [Templates]({%}&page=Help/templates)
* [Reports]({%}&page=Help/reports)

View File

@ -37,7 +37,7 @@ final class TagMapper extends DataMapperFactory
*/
public const COLUMNS = [
'tag_id' => ['name' => 'tag_id', 'type' => 'int', 'internal' => 'id'],
'tag_name' => ['name' => 'tag_name', 'type' => 'string', 'internal' => 'name'],
'tag_name' => ['name' => 'tag_name', 'type' => 'string', 'internal' => 'name'],
'tag_color' => ['name' => 'tag_color', 'type' => 'string', 'internal' => 'color'],
'tag_icon' => ['name' => 'tag_icon', 'type' => 'string', 'internal' => 'icon'],
'tag_type' => ['name' => 'tag_type', 'type' => 'int', 'internal' => 'type'],

View File

@ -13,13 +13,13 @@
declare(strict_types=1);
return ['Tag' => [
'Color' => 'Farbe',
'Create' => 'Erstellen',
'Icon' => 'Symbol',
'Language' => 'Sprache',
'List' => 'Liste',
'Tag' => 'Stichwort',
'Tags' => 'Stichworte',
'Title' => 'Titel',
'InternalName' => 'Interner Name',
'Color' => 'Farbe',
'Create' => 'Erstellen',
'Icon' => 'Symbol',
'Language' => 'Sprache',
'List' => 'Liste',
'Tag' => 'Stichwort',
'Tags' => 'Stichworte',
'Title' => 'Titel',
'InternalName' => 'Interner Name',
]];

View File

@ -13,13 +13,13 @@
declare(strict_types=1);
return ['Tag' => [
'Color' => 'Color',
'Create' => 'Create',
'Icon' => 'Icon',
'Language' => 'Language',
'List' => 'List',
'Tag' => 'Tag',
'Tags' => 'Tags',
'Title' => 'Title',
'InternalName' => 'Internal Name',
'Color' => 'Color',
'Create' => 'Create',
'Icon' => 'Icon',
'Language' => 'Language',
'List' => 'List',
'Tag' => 'Tag',
'Tags' => 'Tags',
'Title' => 'Title',
'InternalName' => 'Internal Name',
]];

View File

@ -12,7 +12,7 @@
},
"creator": {
"name": "Jingga",
"website": "jingga.app"
"website": "https://jingga.app"
},
"description": "Tag module.",
"directory": "Tag",