Passed
Push — main ( ab47dd...702890 )
by Daniel
12:30
created
src/Bootstrap/Init.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $builder->addDefinitions([
43 43
             Psr17Factory::class => autowire(),
44 44
             getID3::class => autowire(),
45
-            ExtractorDeterminatorInterface::class => static function (ContainerInterface $c): ExtractorDeterminatorInterface {
45
+            ExtractorDeterminatorInterface::class => static function(ContainerInterface $c): ExtractorDeterminatorInterface {
46 46
                 return new ExtractorDeterminator(
47 47
                     [
48 48
                         $c->get(Id3v2Extractor::class),
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                     ]
51 51
                 );
52 52
             },
53
-            EntityManagerInterface::class => static function (): EntityManagerInterface {
53
+            EntityManagerInterface::class => static function(): EntityManagerInterface {
54 54
                 $paths = [__DIR__ . '/../Orm/Model/'];
55 55
                 $isDevMode = true;
56 56
 
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
                 $config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);
64 64
                 return EntityManager::create($dbParams, $config);
65 65
             },
66
-            Dotenv::class => function (): Dotenv {
66
+            Dotenv::class => function(): Dotenv {
67 67
                 $dotenv = Dotenv::createImmutable(__DIR__ . '/../../');
68 68
                 $dotenv->load();
69 69
                 return $dotenv;
70 70
             },
71
-            CacheProvider::class => function (): CacheProvider {
71
+            CacheProvider::class => function(): CacheProvider {
72 72
                 return new CacheProvider();
73 73
             },
74 74
         ]);
Please login to merge, or discard this patch.
src/Component/Art/CachedArtResponseProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             $path,
44 44
             $mimeType,
45 45
             $filename,
46
-            $item->getLastModified()?->getTimestamp()
46
+            $item->getLastModified() ? ->getTimestamp()
47 47
         );
48 48
     }
49 49
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         return $this->cacheProvider
69 69
             ->withEtag($response, md5((string) $lastModified))
70 70
             ->withHeader('Content-Type', $mimeType)
71
-            ->withHeader('Content-Disposition', 'filename='.$filename)
71
+            ->withHeader('Content-Disposition', 'filename=' . $filename)
72 72
             ->withBody(
73 73
                 $this->psr17Factory->createStreamFromFile($path)
74 74
             );
Please login to merge, or discard this patch.
src/Api/Art/ArtApplication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     ): ResponseInterface {
30 30
         $itemId = (int) ($args['id'] ?? 0);
31 31
 
32
-        $item = match ($args['type'] ?? null) {
32
+        $item = match($args['type'] ?? null) {
33 33
             default => null,
34 34
             'album' => $this->albumRepository->find($itemId),
35 35
             'artist' => $this->artistRepository->find($itemId),
Please login to merge, or discard this patch.