mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 12:33:49 +00:00
fix cs
This commit is contained in:
@@ -478,11 +478,15 @@ final class SingleTaskController extends AbstractController
|
||||
case 'json':
|
||||
$collection = new Collection($tasks, $paginator);
|
||||
|
||||
return $this->json($collection, JsonResponse::HTTP_OK, [],
|
||||
['groups' => ['read']]);
|
||||
return $this->json(
|
||||
$collection,
|
||||
JsonResponse::HTTP_OK,
|
||||
[],
|
||||
['groups' => ['read']]
|
||||
);
|
||||
|
||||
default:
|
||||
throw new BadRequestException("format not supported: $format");
|
||||
throw new BadRequestException("format not supported: {$format}");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -29,8 +29,8 @@ use function array_keys;
|
||||
*
|
||||
* @ORM\MappedSuperclass
|
||||
* @Serializer\DiscriminatorMap(typeProperty="type", mapping={
|
||||
* "single_task": SingleTask::class
|
||||
* })
|
||||
* "single_task": SingleTask::class
|
||||
* })
|
||||
*/
|
||||
abstract class AbstractTask implements HasCenterInterface, HasScopeInterface
|
||||
{
|
||||
|
Reference in New Issue
Block a user