too many changes

This commit is contained in:
Dennis Eichhorn 2023-03-11 23:38:17 +01:00
parent 781f547c96
commit 91974b05c9
8 changed files with 13 additions and 7 deletions

View File

@ -152,7 +152,13 @@ final class Installer extends InstallerAbstract
$type = $responseData['response'];
$id = $type->getId();
$isFirst = true;
foreach ($data['l11n'] as $l11n) {
if ($isFirst) {
$isFirst = false;
continue;
}
$response = new HttpResponse();
$request = new HttpRequest(new HttpUri(''));

View File

@ -164,7 +164,7 @@ final class ApiController extends Controller
$l11nEditorDocType = $this->createEditorDocTypeL11nFromRequest($request);
$this->createModel($request->header->account, $l11nEditorDocType, EditorDocTypeL11nMapper::class, 'editor_doc_type_l11n', $request->getOrigin());
$this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Localization', 'Category localization successfully created', $l11nEditorDocType);
$this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Localization', 'Localization successfully created', $l11nEditorDocType);
}
/**

View File

@ -70,7 +70,7 @@ final class EditorDocHistoryMapper extends DataMapperFactory
* @var string
* @since 1.0.0
*/
public const PRIMARYFIELD ='editor_doc_versioned_id';
public const PRIMARYFIELD = 'editor_doc_versioned_id';
/**
* Created at.

View File

@ -111,7 +111,7 @@ final class EditorDocMapper extends DataMapperFactory
* @var string
* @since 1.0.0
*/
public const PRIMARYFIELD ='editor_doc_id';
public const PRIMARYFIELD = 'editor_doc_id';
/**
* Created at.

View File

@ -54,7 +54,7 @@ final class EditorDocTypeL11nMapper extends DataMapperFactory
* @var string
* @since 1.0.0
*/
public const PRIMARYFIELD ='editor_doc_type_l11n_id';
public const PRIMARYFIELD = 'editor_doc_type_l11n_id';
/**
* Model to use by the mapper.

View File

@ -76,5 +76,5 @@ final class EditorDocTypeMapper extends DataMapperFactory
* @var string
* @since 1.0.0
*/
public const PRIMARYFIELD ='editor_doc_type_id';
public const PRIMARYFIELD = 'editor_doc_type_id';
}

View File

@ -1,6 +1,6 @@
{
"name": "karaka/module",
"description": "Module for Karaka.",
"description": "Module for Jingga.",
"authors": [
{
"name": "Dennis Eichhorn",

View File

@ -11,7 +11,7 @@
"phpOMS-db": "1.0.0"
},
"creator": {
"name": "Karaka",
"name": "Jingga",
"website": "jingga.app"
},
"description": "The administration module.",