style: fix indentation, alignment, and docblock annotations
- Correct getChoices() docblock to reflect translated label => enum backing value order instead of value => label - Re-indent Smart Links menu config to match actual array nesting - Align assignment operators in RefreshStatsCommand - Add missing newline at end of RefreshStatsCommand.php
This commit is contained in:
1 parent
07773acb8d
commit
b138056e43
90 files changed
+622
-272
No files matched your search
@@ -97,7 +97,7 @@ class TaskController extends AbstractStandardFormController
|
||||
*/
|
||||
public function editAction(Request $request, $objectId, $ignorePost = false): Response
|
||||
{
|
||||
$task = $this->getModel($this->getModelName())->getEntity((int) $objectId);
|
||||
$task = $this->getModel($this->getModelName())->getEntity((int) $objectId);
|
||||
$programId = $task instanceof Task ? $task->getProgram()?->getId() : null;
|
||||
$this->returnProgramId = $this->resolveReturnProgram($request, (string) (int) $objectId, $programId);
|
||||
|
||||
@@ -137,6 +137,10 @@ class TaskController extends AbstractStandardFormController
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $action
|
||||
* @param int|null $objectId
|
||||
* @param bool $isClone
|
||||
*
|
||||
* @return object|null
|
||||
*/
|
||||
protected function getFormEntity($action, &$objectId = null, &$isClone = false)
|
||||
@@ -153,6 +157,13 @@ class TaskController extends AbstractStandardFormController
|
||||
return $entity;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Task $entity
|
||||
* @param string $action
|
||||
* @param mixed $pass
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
protected function afterEntitySave($entity, Form $form, $action, $pass = null)
|
||||
{
|
||||
if ($entity instanceof Task) {
|
||||
@@ -167,6 +178,7 @@ class TaskController extends AbstractStandardFormController
|
||||
* was moved to another program, go to its new program. Otherwise keep core's default: the task list.
|
||||
*
|
||||
* @param array<string, mixed> $args
|
||||
* @param string $action
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user