php cs autofix

This commit is contained in:
Dennis Eichhorn 2020-08-31 22:30:36 +02:00
parent fb1ff7e962
commit 50861c4fd4
15 changed files with 111 additions and 111 deletions

View File

@ -26,7 +26,7 @@ jobs:
- name: Setup Composer - name: Setup Composer
run: composer install run: composer install
- name: Autoformat - name: Autoformat
run: 'vendor/bin/php-cs-fixer fix ./ --rules=''{"array_syntax": {"syntax": "short"}, "blank_line_after_namespace": true, "cast_spaces": {"space": "single"}, "class_attributes_separation": { "elements": ["const", "method", "property"] }, "combine_consecutive_issets": true, "compact_nullable_typehint": true, "declare_strict_types": true, "elseif": true, "encoding": true, "explicit_indirect_variable": true, "explicit_string_variable": true, "function_to_constant": true, "implode_call": true, "increment_style": {"style": "pre"}, "is_null": {"use_yoda_style": false}, "line_ending": true, "logical_operators": true, "lowercase_cast": true, "lowercase_constants": true, "lowercase_keywords": true, "modernize_types_casting": true, "native_constant_invocation": true, "native_function_casing": true, "native_function_invocation": true, "new_with_braces": true, "no_alias_functions": true, "no_closing_tag": true, "no_empty_comment": true, "no_empty_phpdoc": true, "no_empty_statement": true, "no_homoglyph_names": true, "no_mixed_echo_print": {"use": "echo"}, "no_php4_constructor": true, "no_singleline_whitespace_before_semicolons": true, "no_spaces_inside_parenthesis": true, "no_trailing_whitespace": true, "no_unneeded_final_method": true, "no_unused_imports": true, "no_useless_return": true, "no_whitespace_before_comma_in_array": true, "no_whitespace_in_blank_line": true, "non_printable_character": true, "normalize_index_brace": true, "ordered_imports": {"sort_algorithm": "alpha"}, "ordered_interfaces": {"order": "alpha"}, "php_unit_construct": true, "php_unit_internal_class": true, "php_unit_ordered_covers": true, "php_unit_set_up_tear_down_visibility": true, "phpdoc_indent": true, "phpdoc_align": {"align": "vertical"}, "phpdoc_annotation_without_dot": true, "phpdoc_scalar": true, "phpdoc_return_self_reference": {"this": "self"}, "phpdoc_trim": true, "phpdoc_trim_consecutive_blank_line_separation": true, "random_api_migration": true, "self_accessor": true, "return_type_declaration": {"space_before": "one"}, "semicolon_after_instruction": true, "set_type_to_cast": true, "short_scalar_cast": true, "single_blank_line_at_eof": true, "single_line_after_imports": true, "standardize_increment": true, "trailing_comma_in_multiline_array": true, "trim_array_spaces": true, "visibility_required": true, "void_return": true}'' --allow-risky=yes' run: 'vendor/bin/php-cs-fixer fix ./ --rules=''{"array_syntax": {"syntax": "short"}, "blank_line_after_namespace": true, "binary_operator_spaces": {"operators": {"=": "align", ".=": "align", "+=": "align", "-=": "align", "*=": "align", "/=": "align", "|=": "align", "&=": "align", "=>": "align", "??=": "align"}}, "cast_spaces": {"space": "single"}, "class_attributes_separation": { "elements": ["const", "method", "property"] }, "combine_consecutive_issets": true, "compact_nullable_typehint": true, "declare_strict_types": true, "elseif": true, "encoding": true, "explicit_indirect_variable": true, "explicit_string_variable": true, "function_to_constant": true, "implode_call": true, "increment_style": {"style": "pre"}, "is_null": {"use_yoda_style": false}, "line_ending": true, "logical_operators": true, "lowercase_cast": true, "lowercase_constants": true, "lowercase_keywords": true, "modernize_types_casting": true, "native_constant_invocation": true, "native_function_casing": true, "native_function_invocation": true, "new_with_braces": true, "no_alias_functions": true, "no_closing_tag": true, "no_empty_comment": true, "no_empty_phpdoc": true, "no_empty_statement": true, "no_homoglyph_names": true, "no_mixed_echo_print": {"use": "echo"}, "no_php4_constructor": true, "no_singleline_whitespace_before_semicolons": true, "no_spaces_inside_parenthesis": true, "no_trailing_whitespace": true, "no_unneeded_final_method": true, "no_unused_imports": true, "no_useless_return": true, "no_whitespace_before_comma_in_array": true, "no_whitespace_in_blank_line": true, "non_printable_character": true, "normalize_index_brace": true, "ordered_imports": {"sort_algorithm": "alpha"}, "ordered_interfaces": {"order": "alpha"}, "php_unit_construct": true, "php_unit_internal_class": true, "php_unit_ordered_covers": true, "php_unit_set_up_tear_down_visibility": true, "phpdoc_indent": true, "phpdoc_align": {"align": "vertical"}, "phpdoc_annotation_without_dot": true, "phpdoc_scalar": true, "phpdoc_return_self_reference": {"this": "self"}, "phpdoc_trim": true, "phpdoc_trim_consecutive_blank_line_separation": true, "random_api_migration": true, "self_accessor": true, "return_type_declaration": {"space_before": "one"}, "semicolon_after_instruction": true, "set_type_to_cast": true, "short_scalar_cast": true, "single_blank_line_at_eof": true, "single_line_after_imports": true, "standardize_increment": true, "trailing_comma_in_multiline_array": true, "trim_array_spaces": true, "visibility_required": true, "void_return": true}'' --allow-risky=yes'
- name: Check for modified files - name: Check for modified files
id: git-check id: git-check
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)

View File

@ -8,200 +8,200 @@ use phpOMS\Router\RouteVerb;
return [ return [
'^.*/accounting/personal/entries.*$' => [ '^.*/accounting/personal/entries.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewPersonalEntries', 'dest' => '\Modules\Accounting\Controller\BackendController:viewPersonalEntries',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::PERSONAL, 'state' => PermissionState::PERSONAL,
], ],
], ],
], ],
'^.*/accounting/impersonal/entries.*$' => [ '^.*/accounting/impersonal/entries.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewImpersonalEntries', 'dest' => '\Modules\Accounting\Controller\BackendController:viewImpersonalEntries',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::IMPERSONAL, 'state' => PermissionState::IMPERSONAL,
], ],
], ],
], ],
'^.*/accounting/entries.*$' => [ '^.*/accounting/entries.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewEntries', 'dest' => '\Modules\Accounting\Controller\BackendController:viewEntries',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::ENTRY, 'state' => PermissionState::ENTRY,
], ],
], ],
], ],
'^.*/accounting/impersonal/journal/list.*$' => [ '^.*/accounting/impersonal/journal/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewJournalList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewJournalList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::JOURNAL, 'state' => PermissionState::JOURNAL,
], ],
], ],
], ],
'^.*/accounting/stack/list.*$' => [ '^.*/accounting/stack/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewStackList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::STACK, 'state' => PermissionState::STACK,
], ],
], ],
], ],
'^.*/accounting/stack/entries.*$' => [ '^.*/accounting/stack/entries.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewStackEntries', 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackEntries',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::STACK, 'state' => PermissionState::STACK,
], ],
], ],
], ],
'^.*/accounting/stack/archive/list.*$' => [ '^.*/accounting/stack/archive/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewStackArchiveList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackArchiveList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::STACK, 'state' => PermissionState::STACK,
], ],
], ],
], ],
'^.*/accounting/stack/create.*$' => [ '^.*/accounting/stack/create.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewStackCreate', 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,
'state' => PermissionState::STACK, 'state' => PermissionState::STACK,
], ],
], ],
], ],
'^.*/accounting/stack/predefined/list.*$' => [ '^.*/accounting/stack/predefined/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewStackPredefinedList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackPredefinedList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::STACK, 'state' => PermissionState::STACK,
], ],
], ],
], ],
'^.*/accounting/gl/list.*$' => [ '^.*/accounting/gl/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewGLList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewGLList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::GL, 'state' => PermissionState::GL,
], ],
], ],
], ],
'^.*/accounting/gl/create.*$' => [ '^.*/accounting/gl/create.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewGLCreate', 'dest' => '\Modules\Accounting\Controller\BackendController:viewGLCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::CREATE, 'type' => PermissionType::CREATE,
'state' => PermissionState::GL, 'state' => PermissionState::GL,
], ],
], ],
], ],
'^.*/accounting/gl/profile.*$' => [ '^.*/accounting/gl/profile.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewGLProfile', 'dest' => '\Modules\Accounting\Controller\BackendController:viewGLProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::GL, 'state' => PermissionState::GL,
], ],
], ],
], ],
'^.*/accounting/dun/print.*$' => [ '^.*/accounting/dun/print.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::COST_CENTER, 'state' => PermissionState::COST_CENTER,
], ],
], ],
], ],
'^.*/accounting/statement/print.*$' => [ '^.*/accounting/statement/print.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::ACCOUNT, 'state' => PermissionState::ACCOUNT,
], ],
], ],
], ],
'^.*/accounting/balances/print.*$' => [ '^.*/accounting/balances/print.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::ACCOUNT, 'state' => PermissionState::ACCOUNT,
], ],
], ],
], ],
'^.*/accounting/accountform/print.*$' => [ '^.*/accounting/accountform/print.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::ACCOUNT, 'state' => PermissionState::ACCOUNT,
], ],
], ],
], ],
'^.*/accounting/costcenter/list.*$' => [ '^.*/accounting/costcenter/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::COST_CENTER, 'state' => PermissionState::COST_CENTER,
], ],
], ],
], ],
'^.*/accounting/costobject/list.*$' => [ '^.*/accounting/costobject/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewCostObjectList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostObjectList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,
'state' => PermissionState::COST_OBJECT, 'state' => PermissionState::COST_OBJECT,
], ],
], ],
], ],

View File

@ -45,11 +45,11 @@ final class CostCenterMapper extends DataMapperAbstract
*/ */
protected static array $hasMany = [ protected static array $hasMany = [
'l11n' => [ 'l11n' => [
'mapper' => L11nCostCenterMapper::class, 'mapper' => L11nCostCenterMapper::class,
'table' => 'accounting_costcenter_l11n', 'table' => 'accounting_costcenter_l11n',
'external' => 'accounting_costcenter_l11n_costcenter', 'external' => 'accounting_costcenter_l11n_costcenter',
'conditional' => true, 'conditional' => true,
'self' => null, 'self' => null,
], ],
]; ];

View File

@ -33,7 +33,7 @@ final class CostObjectMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
'accounting_costobject_id' => ['name' => 'accounting_costobject_id', 'type' => 'int', 'internal' => 'id'], 'accounting_costobject_id' => ['name' => 'accounting_costobject_id', 'type' => 'int', 'internal' => 'id'],
'accounting_costobject_code' => ['name' => 'accounting_costobject_code', 'type' => 'string', 'internal' => 'code'], 'accounting_costobject_code' => ['name' => 'accounting_costobject_code', 'type' => 'string', 'internal' => 'code'],
]; ];
@ -45,11 +45,11 @@ final class CostObjectMapper extends DataMapperAbstract
*/ */
protected static array $hasMany = [ protected static array $hasMany = [
'l11n' => [ 'l11n' => [
'mapper' => L11nCostObjectMapper::class, 'mapper' => L11nCostObjectMapper::class,
'table' => 'accounting_costobject_l11n', 'table' => 'accounting_costobject_l11n',
'external' => 'accounting_costobject_l11n_costobject', 'external' => 'accounting_costobject_l11n_costobject',
'conditional' => true, 'conditional' => true,
'self' => null, 'self' => null,
], ],
]; ];

View File

@ -189,10 +189,10 @@ class L11nCostCenter implements \JsonSerializable, ArrayableInterface
public function toArray() : array public function toArray() : array
{ {
return [ return [
'id' => $this->id, 'id' => $this->id,
'name' => $this->name, 'name' => $this->name,
'costcenter' => $this->costcenter, 'costcenter' => $this->costcenter,
'language' => $this->language, 'language' => $this->language,
]; ];
} }

View File

@ -36,11 +36,11 @@ final class L11nCostCenterMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
'accounting_costcenter_l11n_id' => ['name' => 'accounting_costcenter_l11n_id', 'type' => 'int', 'internal' => 'id'], 'accounting_costcenter_l11n_id' => ['name' => 'accounting_costcenter_l11n_id', 'type' => 'int', 'internal' => 'id'],
'accounting_costcenter_l11n_name' => ['name' => 'accounting_costcenter_l11n_name', 'type' => 'string', 'internal' => 'name', 'autocomplete' => true], 'accounting_costcenter_l11n_name' => ['name' => 'accounting_costcenter_l11n_name', 'type' => 'string', 'internal' => 'name', 'autocomplete' => true],
'accounting_costcenter_l11n_description' => ['name' => 'accounting_costcenter_l11n_description', 'type' => 'string', 'internal' => 'description', 'autocomplete' => true], 'accounting_costcenter_l11n_description' => ['name' => 'accounting_costcenter_l11n_description', 'type' => 'string', 'internal' => 'description', 'autocomplete' => true],
'accounting_costcenter_l11n_costcenter' => ['name' => 'accounting_costcenter_l11n_costcenter', 'type' => 'int', 'internal' => 'costcenter'], 'accounting_costcenter_l11n_costcenter' => ['name' => 'accounting_costcenter_l11n_costcenter', 'type' => 'int', 'internal' => 'costcenter'],
'accounting_costcenter_l11n_language' => ['name' => 'accounting_costcenter_l11n_language', 'type' => 'string', 'internal' => 'language'], 'accounting_costcenter_l11n_language' => ['name' => 'accounting_costcenter_l11n_language', 'type' => 'string', 'internal' => 'language'],
]; ];
/** /**
@ -51,10 +51,10 @@ final class L11nCostCenterMapper extends DataMapperAbstract
*/ */
protected static array $ownsOne = [ protected static array $ownsOne = [
'language' => [ 'language' => [
'mapper' => LanguageMapper::class, 'mapper' => LanguageMapper::class,
'self' => 'accounting_costcenter_l11n_language', 'self' => 'accounting_costcenter_l11n_language',
'by' => 'code2', 'by' => 'code2',
'column' => 'code2', 'column' => 'code2',
'conditional' => true, 'conditional' => true,
], ],
]; ];

View File

@ -189,10 +189,10 @@ class L11nCostObject implements \JsonSerializable, ArrayableInterface
public function toArray() : array public function toArray() : array
{ {
return [ return [
'id' => $this->id, 'id' => $this->id,
'name' => $this->name, 'name' => $this->name,
'costobject' => $this->costobject, 'costobject' => $this->costobject,
'language' => $this->language, 'language' => $this->language,
]; ];
} }

View File

@ -36,11 +36,11 @@ final class L11nCostObjectMapper extends DataMapperAbstract
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
'accounting_costobject_l11n_id' => ['name' => 'accounting_costobject_l11n_id', 'type' => 'int', 'internal' => 'id'], 'accounting_costobject_l11n_id' => ['name' => 'accounting_costobject_l11n_id', 'type' => 'int', 'internal' => 'id'],
'accounting_costobject_l11n_name' => ['name' => 'accounting_costobject_l11n_name', 'type' => 'string', 'internal' => 'name', 'autocomplete' => true], 'accounting_costobject_l11n_name' => ['name' => 'accounting_costobject_l11n_name', 'type' => 'string', 'internal' => 'name', 'autocomplete' => true],
'accounting_costobject_l11n_description' => ['name' => 'accounting_costobject_l11n_description', 'type' => 'string', 'internal' => 'description', 'autocomplete' => true], 'accounting_costobject_l11n_description' => ['name' => 'accounting_costobject_l11n_description', 'type' => 'string', 'internal' => 'description', 'autocomplete' => true],
'accounting_costobject_l11n_costobject' => ['name' => 'accounting_costobject_l11n_costobject', 'type' => 'int', 'internal' => 'costobject'], 'accounting_costobject_l11n_costobject' => ['name' => 'accounting_costobject_l11n_costobject', 'type' => 'int', 'internal' => 'costobject'],
'accounting_costobject_l11n_language' => ['name' => 'accounting_costobject_l11n_language', 'type' => 'string', 'internal' => 'language'], 'accounting_costobject_l11n_language' => ['name' => 'accounting_costobject_l11n_language', 'type' => 'string', 'internal' => 'language'],
]; ];
/** /**
@ -51,10 +51,10 @@ final class L11nCostObjectMapper extends DataMapperAbstract
*/ */
protected static array $ownsOne = [ protected static array $ownsOne = [
'language' => [ 'language' => [
'mapper' => LanguageMapper::class, 'mapper' => LanguageMapper::class,
'self' => 'accounting_costobject_l11n_language', 'self' => 'accounting_costobject_l11n_language',
'by' => 'code2', 'by' => 'code2',
'column' => 'code2', 'column' => 'code2',
'conditional' => true, 'conditional' => true,
], ],
]; ];

View File

@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?>
<td class="wf-100"><?= $this->getHtml('Name'); ?> <td class="wf-100"><?= $this->getHtml('Name'); ?>
<tbody> <tbody>
<?php $count = 0; foreach ($costcenter as $key => $value) : ++$count; <?php $count = 0; foreach ($costcenter as $key => $value) : ++$count;
$url = UriFactory::build('{/prefix}tag/single?{?}&id=' . $value->getId()); ?> $url = UriFactory::build('{/prefix}tag/single?{?}&id=' . $value->getId()); ?>
<tr tabindex="0" data-href="<?= $url; ?>"> <tr tabindex="0" data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('Code'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCode()); ?></a> <td data-label="<?= $this->getHtml('Code'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCode()); ?></a>
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a> <td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>

View File

@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?>
<td class="wf-100"><?= $this->getHtml('Name'); ?> <td class="wf-100"><?= $this->getHtml('Name'); ?>
<tbody> <tbody>
<?php $count = 0; foreach ($costobject as $key => $value) : ++$count; <?php $count = 0; foreach ($costobject as $key => $value) : ++$count;
$url = UriFactory::build('{/prefix}tag/single?{?}&id=' . $value->getId()); ?> $url = UriFactory::build('{/prefix}tag/single?{?}&id=' . $value->getId()); ?>
<tr tabindex="0" data-href="<?= $url; ?>"> <tr tabindex="0" data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('Code'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCode()); ?></a> <td data-label="<?= $this->getHtml('Code'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCode()); ?></a>
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a> <td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>

View File

@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="5"> <tr><td colspan="5">
<tbody> <tbody>
<?php $c = 0; foreach ([] as $key => $value) : ++$c; <?php $c = 0; foreach ([] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
<tr> <tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>

View File

@ -36,7 +36,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="5"> <tr><td colspan="5">
<tbody> <tbody>
<?php $c = 0; foreach ([] as $key => $value) : ++$c; <?php $c = 0; foreach ([] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
<tr> <tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>

View File

@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="5"> <tr><td colspan="5">
<tbody> <tbody>
<?php $c = 0; foreach ([] as $key => $value) : ++$c; <?php $c = 0; foreach ([] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
<tr> <tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>

View File

@ -40,7 +40,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="5"> <tr><td colspan="5">
<tbody> <tbody>
<?php $c = 0; foreach ([] as $key => $value) : ++$c; <?php $c = 0; foreach ([] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
<tr> <tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>

View File

@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="5"> <tr><td colspan="5">
<tbody> <tbody>
<?php $c = 0; foreach ([] as $key => $value) : ++$c; <?php $c = 0; foreach ([] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
<tr> <tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>