autofixes

This commit is contained in:
Dennis Eichhorn 2023-08-30 12:08:09 +00:00
parent 005bde94d1
commit 97e7ddf988
7 changed files with 14 additions and 17 deletions

View File

@ -446,7 +446,6 @@ final class ApiAttributeController extends Controller
public function apiContractAttributeValueDelete(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void public function apiContractAttributeValueDelete(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
{ {
return; return;
// @todo: I don't think values can be deleted? Only Attributes // @todo: I don't think values can be deleted? Only Attributes
// However, It should be possible to remove UNUSED default values // However, It should be possible to remove UNUSED default values
// either here or other function? // either here or other function?

View File

@ -202,8 +202,8 @@ final class ApiContractTypeController extends Controller
/** /**
* Method to update ContractType from request. * Method to update ContractType from request.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param BaseStringL11nType $new Model to modify * @param BaseStringL11nType $new Model to modify
* *
* @return BaseStringL11nType * @return BaseStringL11nType
* *
@ -319,8 +319,8 @@ final class ApiContractTypeController extends Controller
/** /**
* Method to update ContractTypeL11n from request. * Method to update ContractTypeL11n from request.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param BaseStringL11n $new Model to modify * @param BaseStringL11n $new Model to modify
* *
* @return BaseStringL11n * @return BaseStringL11n
* *

View File

@ -224,8 +224,8 @@ final class ApiController extends Controller
/** /**
* Method to update Contract from request. * Method to update Contract from request.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param Contract $new Model to modify * @param Contract $new Model to modify
* *
* @return Contract * @return Contract
* *

View File

@ -37,10 +37,10 @@ final class ContractAttributeMapper extends DataMapperFactory
* @since 1.0.0 * @since 1.0.0
*/ */
public const COLUMNS = [ public const COLUMNS = [
'contractmgmt_contract_attr_id' => ['name' => 'contractmgmt_contract_attr_id', 'type' => 'int', 'internal' => 'id'], 'contractmgmt_contract_attr_id' => ['name' => 'contractmgmt_contract_attr_id', 'type' => 'int', 'internal' => 'id'],
'contractmgmt_contract_attr_contract' => ['name' => 'contractmgmt_contract_attr_contract', 'type' => 'int', 'internal' => 'ref'], 'contractmgmt_contract_attr_contract' => ['name' => 'contractmgmt_contract_attr_contract', 'type' => 'int', 'internal' => 'ref'],
'contractmgmt_contract_attr_type' => ['name' => 'contractmgmt_contract_attr_type', 'type' => 'int', 'internal' => 'type'], 'contractmgmt_contract_attr_type' => ['name' => 'contractmgmt_contract_attr_type', 'type' => 'int', 'internal' => 'type'],
'contractmgmt_contract_attr_value' => ['name' => 'contractmgmt_contract_attr_value', 'type' => 'int', 'internal' => 'value'], 'contractmgmt_contract_attr_value' => ['name' => 'contractmgmt_contract_attr_value', 'type' => 'int', 'internal' => 'value'],
]; ];
/** /**

View File

@ -18,9 +18,9 @@ namespace Modules\ContractManagement\Models;
use Modules\Admin\Models\AccountMapper; use Modules\Admin\Models\AccountMapper;
use Modules\ContractManagement\Models\Attribute\ContractAttributeMapper; use Modules\ContractManagement\Models\Attribute\ContractAttributeMapper;
use Modules\Editor\Models\EditorDocMapper;
use Modules\Media\Models\MediaMapper; use Modules\Media\Models\MediaMapper;
use Modules\Organization\Models\UnitMapper; use Modules\Organization\Models\UnitMapper;
use Modules\Editor\Models\EditorDocMapper;
use phpOMS\DataStorage\Database\Mapper\DataMapperFactory; use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
/** /**

View File

@ -13,9 +13,9 @@
declare(strict_types=1); declare(strict_types=1);
return ['Navigation' => [ return ['Navigation' => [
'Contract' => 'Contract', 'Contract' => 'Contract',
'Contracts' => 'Contracts', 'Contracts' => 'Contracts',
'ContractTypes' => 'Types', 'ContractTypes' => 'Types',
'Create' => 'Create', 'Create' => 'Create',
'List' => 'List', 'List' => 'List',
]]; ]];

View File

@ -12,8 +12,6 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
use phpOMS\Uri\UriFactory;
/** /**
* @var \phpOMS\Views\View $this * @var \phpOMS\Views\View $this
* @var \Modules\ContractManagement\Models\Contract $contract * @var \Modules\ContractManagement\Models\Contract $contract