@@ -123,7 +123,7 @@ public function testDetectMimeTypeCustom(string $ext, string $mime): void {
123123 try {
124124 // Create a default / shipped mapping file (dist)
125125 file_put_contents ($ tmpDir . '/mimetypemapping.dist.json ' , json_encode ([]));
126-
126+
127127 // Create new custom mapping file that should be picked up by Detection
128128 file_put_contents ($ tmpDir . '/mimetypemapping.json ' , json_encode ([$ ext => [$ mime ]]));
129129
@@ -158,15 +158,15 @@ public function testDetectMimeTypePreservesLeadingZeroKeys(): void {
158158 // Create new custom mapping file with potentially problematic keys
159159 $ mappings = [
160160 '001 ' => ['application/x-zeroone ' , null ],
161- '1 ' => ['application/x-one ' , null ],
161+ '1 ' => ['application/x-one ' , null ],
162162 ];
163163 file_put_contents ($ tmpDir . '/mimetypemapping.json ' , json_encode ($ mappings ));
164164
165165 /** @var IURLGenerator $urlGenerator */
166166 $ urlGenerator = $ this ->getMockBuilder (IURLGenerator::class)
167167 ->disableOriginalConstructor ()
168168 ->getMock ();
169-
169+
170170 /** @var LoggerInterface $logger */
171171 $ logger = $ this ->createMock (LoggerInterface::class);
172172
@@ -175,7 +175,7 @@ public function testDetectMimeTypePreservesLeadingZeroKeys(): void {
175175
176176 $ this ->assertArrayHasKey ('001 ' , $ mappings , 'Expected mapping to contain key "001" ' );
177177 $ this ->assertArrayHasKey ('1 ' , $ mappings , 'Expected mapping to contain key "1" ' );
178-
178+
179179 $ this ->assertEquals ('application/x-zeroone ' , $ detection ->detectPath ('foo.001 ' ));
180180 $ this ->assertEquals ('application/x-one ' , $ detection ->detectPath ('foo.1 ' ));
181181 } finally {
0 commit comments