Automated formatting changes

This commit is contained in:
Formatter Bot 2021-05-28 18:32:20 +00:00
parent 527e540fe5
commit 084a09d542
2 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ final class ApiController extends Controller
$card->name = (string) ($request->getData('title'));
$card->descriptionRaw = (string) ($request->getData('plain') ?? '');
$card->description = Markdown::parse((string) ($request->getData('plain') ?? ''));
$card->style = (string) ($request->getData('style') ?? '');
$card->style = (string) ($request->getData('style') ?? '');
$card->setColumn((int) $request->getData('column'));
$card->setOrder((int) ($request->getData('order') ?? 1));
$card->setRef((int) ($request->getData('ref') ?? 0));
@ -335,7 +335,7 @@ final class ApiController extends Controller
private function updateBoardFromRequest(RequestAbstract $request) : KanbanBoard
{
/** @var KanbanBoard $board */
$board = KanbanBoardMapper::get((int) $request->getData('id'));
$board = KanbanBoardMapper::get((int) $request->getData('id'));
$board->name = $request->getData('title') ?? $board->name;
$board->description = Markdown::parse((string) ($request->getData('plain') ?? $board->descriptionRaw));
$board->descriptionRaw = (string) ($request->getData('plain') ?? $board->descriptionRaw);

View File

@ -41,7 +41,7 @@ final class KanbanBoardMapper extends DataMapperAbstract
'kanban_board_descraw' => ['name' => 'kanban_board_descraw', 'type' => 'string', 'internal' => 'descriptionRaw'],
'kanban_board_status' => ['name' => 'kanban_board_status', 'type' => 'int', 'internal' => 'status'],
'kanban_board_order' => ['name' => 'kanban_board_order', 'type' => 'int', 'internal' => 'order'],
'kanban_board_style' => ['name' => 'kanban_board_style', 'type' => 'string', 'internal' => 'style'],
'kanban_board_style' => ['name' => 'kanban_board_style', 'type' => 'string', 'internal' => 'style'],
'kanban_board_created_by' => ['name' => 'kanban_board_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true],
'kanban_board_created_at' => ['name' => 'kanban_board_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true],
];