cs: Enable more risky rules.

This commit is contained in:
Pol Dellaiera
2021-11-30 12:27:49 +01:00
parent 733bee06a8
commit 28d2c42454
34 changed files with 45 additions and 45 deletions

View File

@@ -230,7 +230,7 @@ class EventController extends AbstractController
*
* @return \Symfony\Component\HttpFoundation\Response
*/
public function newAction(?Center $center = null, Request $request)
public function newAction(?Center $center, Request $request)
{
if (null === $center) {
$center_id = $request->query->get('center_id');

View File

@@ -29,7 +29,7 @@ use function in_array;
* @ORM\Table(name="chill_event_participation")
* @ORM\HasLifecycleCallbacks
*/
class Participation implements HasCenterInterface, HasScopeInterface, ArrayAccess
class Participation implements ArrayAccess, HasCenterInterface, HasScopeInterface
{
/**
* @var Event