php cs fixes

This commit is contained in:
2023-11-09 19:25:41 +01:00
parent 6d608ab35a
commit 32a103d86a
9 changed files with 48 additions and 56 deletions

View File

@@ -1,22 +1,24 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Controller;
use Chill\MainBundle\CRUD\Controller\ApiController;
use Chill\MainBundle\Entity\NewsItem;
use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Pagination\PaginatorInterface;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\Security;
class DashboardApiController
{
/**
* Get user dashboard config (not yet based on user id and still hardcoded for now)
* Get user dashboard config (not yet based on user id and still hardcoded for now).
*
* @Route("/api/1.0/main/dashboard-config-item.json", methods={"get"})
*/
@@ -30,11 +32,10 @@ class DashboardApiController
'metadata' => [
// arbitrary data that will be store "some time"
'only_unread' => false,
]
]
],
],
];
return new JsonResponse($data, JsonResponse::HTTP_OK, []);
}
}