@@ -182,7 +182,7 @@ |
||
182 | 182 | uriVariables: [ |
183 | 183 | 'id' => new Link(fromClass: Game::class, toProperty: 'game'), |
184 | 184 | ], |
185 | - operations: [ new GetCollection() ], |
|
185 | + operations: [new GetCollection()], |
|
186 | 186 | normalizationContext: ['groups' => ['group:read']], |
187 | 187 | )] |
188 | 188 | #[ApiFilter( |
@@ -34,7 +34,7 @@ |
||
34 | 34 | uriVariables: [ |
35 | 35 | 'id' => new Link(fromClass: Video::class, toProperty: 'video'), |
36 | 36 | ], |
37 | - operations: [ new GetCollection() ], |
|
37 | + operations: [new GetCollection()], |
|
38 | 38 | normalizationContext: ['groups' => ['video-comment:read', 'video-comment:player', 'player:read']], |
39 | 39 | )] |
40 | 40 | class VideoComment |
@@ -498,7 +498,7 @@ |
||
498 | 498 | $this->platforms->removeElement($platform); |
499 | 499 | } |
500 | 500 | |
501 | - public function getPlatforms(): ArrayCollection|Collection |
|
501 | + public function getPlatforms(): ArrayCollection | Collection |
|
502 | 502 | { |
503 | 503 | return $this->platforms; |
504 | 504 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | 'overrideDefaultGroups' => true, |
64 | 64 | 'whitelist' => [ |
65 | 65 | 'team-game:read', |
66 | - 'team-game:game','game:read', |
|
66 | + 'team-game:game', 'game:read', |
|
67 | 67 | 'game:platforms', 'platform:read', |
68 | 68 | ] |
69 | 69 | ] |
@@ -125,7 +125,7 @@ |
||
125 | 125 | 'required' => false, |
126 | 126 | 'expanded' => false, |
127 | 127 | 'query_builder' => |
128 | - function ($er) { |
|
128 | + function($er) { |
|
129 | 129 | $qb = $er->createQueryBuilder('p'); |
130 | 130 | $qb->orderBy('p.libPlatform', 'ASC'); |
131 | 131 | return $qb; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | 'label' => 'label.type', |
33 | 33 | 'required' => true, |
34 | 34 | 'query_builder' => |
35 | - function ($er) { |
|
35 | + function($er) { |
|
36 | 36 | $qb = $er->createQueryBuilder('p'); |
37 | 37 | $qb->orderBy('p.name', 'ASC'); |
38 | 38 | return $qb; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | [ |
33 | 33 | 'required' => true, |
34 | 34 | 'query_builder' => |
35 | - function ($er) use ($chart) { |
|
35 | + function($er) use ($chart) { |
|
36 | 36 | $qb = $er->createQueryBuilder('l'); |
37 | 37 | $qb->where('l.chart = :chart'); |
38 | 38 | $qb->setParameter('chart', $chart); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | $stream = $this->appStorage->readStream($path); |
49 | - return new StreamedResponse(function () use ($stream) { |
|
49 | + return new StreamedResponse(function() use ($stream) { |
|
50 | 50 | fpassthru($stream); |
51 | 51 | exit(); |
52 | 52 | }, 200, ['Content-Type' => $this->getMimeType($path)]); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | $stream = $this->appStorage->readStream($path); |
40 | - return new StreamedResponse(function () use ($stream) { |
|
40 | + return new StreamedResponse(function() use ($stream) { |
|
41 | 41 | fpassthru($stream); |
42 | 42 | }, 200, ['Content-Type' => 'image/png']); |
43 | 43 | } |