Browse Source

Fix Codacy Issue

pull/487/head
Sebastian Meyer 2 years ago
parent
commit
f1634bf2e6
  1. 4
      Classes/Module/NewTenant.php
  2. 2
      Resources/Private/Data/MetadataDefaults.php
  3. 2
      Resources/Private/Data/StructureDefaults.php

4
Classes/Module/NewTenant.php

@ -45,7 +45,7 @@ class NewTenant extends \Kitodo\Dlf\Common\AbstractModule
protected function cmdAddMetadata()
{
// Include metadata definition file.
include_once(ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/MetadataDefaults.php');
$metadataDefaults = include (ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/MetadataDefaults.php');
$i = 0;
// Build data array.
foreach ($metadataDefaults as $index_name => $values) {
@ -137,7 +137,7 @@ class NewTenant extends \Kitodo\Dlf\Common\AbstractModule
protected function cmdAddStructure()
{
// Include structure definition file.
include_once(ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/StructureDefaults.php');
$structureDefaults = include (ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/StructureDefaults.php');
// Build data array.
foreach ($structureDefaults as $index_name => $values) {
$data['tx_dlf_structures'][uniqid('NEW')] = [

2
Resources/Private/Data/MetadataDefaults.php

@ -12,7 +12,7 @@
// Define metadata elements.
// @see http://dfg-viewer.de/en/profile-of-the-metadata/
$metadataDefaults = [
return [
'type' => [
'format' => [
[

2
Resources/Private/Data/StructureDefaults.php

@ -12,7 +12,7 @@
// Define structure elements.
// @see http://dfg-viewer.de/en/structural-data-set/
$structureDefaults = [
return [
'act' => [
'toplevel' => 1,
'oai_name' => '',

Loading…
Cancel
Save