diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 3f1ac2a..c4b7e57 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -85,7 +85,7 @@ final class ApiController extends Controller } foreach ($hooks as $hook) { - /** @var array{:triggerGroup?:string} $data */ + /** @var array{:triggerGroup?:string} $data */ $triggerIsRegex = \stripos($data[':triggerGroup'], '/') === 0; $matched = false; diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 32f1f4c..20ea896 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -18,7 +18,6 @@ use Modules\Media\Models\CollectionMapper; use Modules\Media\Models\NullMedia; use Modules\Workflow\Models\WorkflowControllerInterface; use Modules\Workflow\Models\WorkflowInstanceAbstractMapper; -use Modules\Workflow\Models\WorkflowInstanceMapper; use Modules\Workflow\Models\WorkflowTemplateMapper; use phpOMS\Asset\AssetType; use phpOMS\Contract\RenderableInterface; diff --git a/Models/WorkflowInstanceAbstractMapper.php b/Models/WorkflowInstanceAbstractMapper.php index af4e3e8..a046fb8 100644 --- a/Models/WorkflowInstanceAbstractMapper.php +++ b/Models/WorkflowInstanceAbstractMapper.php @@ -34,12 +34,12 @@ final class WorkflowInstanceAbstractMapper extends DataMapperFactory * @since 1.0.0 */ public const COLUMNS = [ - 'workflow_instance_id' => ['name' => 'workflow_instance_id', 'type' => 'int', 'internal' => 'id'], + 'workflow_instance_id' => ['name' => 'workflow_instance_id', 'type' => 'int', 'internal' => 'id'], 'workflow_instance_title' => ['name' => 'workflow_instance_title', 'type' => 'string', 'internal' => 'title'], - 'workflow_instance_status' => ['name' => 'workflow_instance_status', 'type' => 'int', 'internal' => 'status'], - 'workflow_instance_template' => ['name' => 'workflow_instance_template', 'type' => 'int', 'internal' => 'template'], - 'workflow_instance_created_at' => ['name' => 'workflow_instance_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true], - 'workflow_instance_created_by' => ['name' => 'workflow_instance_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true], + 'workflow_instance_status' => ['name' => 'workflow_instance_status', 'type' => 'int', 'internal' => 'status'], + 'workflow_instance_template' => ['name' => 'workflow_instance_template', 'type' => 'int', 'internal' => 'template'], + 'workflow_instance_created_at' => ['name' => 'workflow_instance_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true], + 'workflow_instance_created_by' => ['name' => 'workflow_instance_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true], ]; /**