Passed
Pull Request — develop (#95)
by BENARD
13:04 queued 39s
created
src/Form/Type/ChartTypeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             EntityType::class,
21 21
             [
22 22
                     'class' => ChartType::class,
23
-                    'query_builder' => function (EntityRepository $er) {
23
+                    'query_builder' => function(EntityRepository $er) {
24 24
                         return $er->createQueryBuilder('ct')
25 25
                             ->orderBy('ct.name', 'ASC');
26 26
                     },
Please login to merge, or discard this patch.
src/Controller/Badge/GetPicture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         }
37 37
 
38 38
         $stream = $this->appStorage->readStream($path);
39
-        return new StreamedResponse(function () use ($stream) {
39
+        return new StreamedResponse(function() use ($stream) {
40 40
             fpassthru($stream);
41 41
         }, 200, ['Content-Type' => 'image/gif']);
42 42
     }
Please login to merge, or discard this patch.
src/Controller/Game/GetPicture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Controller/Serie/GetPicture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Controller/Picture/Show.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function __invoke(Picture $picture): StreamedResponse
37 37
     {
38 38
         $stream = $this->proofStorage->readStream($picture->getPath());
39
-        return new StreamedResponse(function () use ($stream) {
39
+        return new StreamedResponse(function() use ($stream) {
40 40
             fpassthru($stream);
41 41
             exit();
42 42
         }, 200, ['Content-Type' => $this->getMimeType($picture->getPath())]);
Please login to merge, or discard this patch.
src/Entity/Player.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
     uriVariables: [
168 168
         'id' => new Link(fromClass: Team::class, toProperty: 'team'),
169 169
     ],
170
-    operations: [ new GetCollection() ],
170
+    operations: [new GetCollection()],
171 171
     normalizationContext: ['groups' => ['player:read']],
172 172
 )]
173 173
 #[ApiFilter(
Please login to merge, or discard this patch.
src/Entity/Group.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Entity/VideoComment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Entity/Game.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -498,7 +498,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.