Completed
Pull Request — master (#5)
by mon
03:51
created

MiniMap::getFileName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace FileEye\MimeMap\Tests;
4
5
/**
6
 * Class for mapping file extensions to MIME types.
7
 */
8
class MiniMap
9
{
10
    /**
11
     * Returns this file's full qualified filename.
12
     *
13
     * @return $string
0 ignored issues
show
Documentation introduced by
The doc-type $string could not be parsed: Unknown type name "$string" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
14
     */
15 1
    public static function getFileName()
16
    {
17 1
        return __FILE__;
18
    }
19
20
    /**
21
     * Mapping between file extensions and MIME types.
22
     *
23
     * The array has two main keys, 'types' that maps MIME types to file
24
     * extensions, and 'extensions' that map file extensions to MIME types.
25
     *
26
     * The entire map is created automatically by running
27
     *  $ fileye-mimemap update [URL] [YAML] [FILE]
28
     * on the command line.
29
     * The utility application fetches the map from the Apache HTTPD
30
     * documentation website, and integrates its definitions with any further
31
     * specifications contained in the YAML file.
32
     *
33
     * DO NOT CHANGE THE MAPPING ARRAY MANUALLY.
34
     *
35
     * @internal
36
     *
37
     * @var array
38
     */
39
    // phpcs:disable
40
    public static $map = array (
41
  'types' =>
42
  array (
43
    'application/andrew-inset' =>
44
    array (
45
      0 => 'ez',
46
    ),
47
  ),
48
  'extensions' =>
49
  array (
50
    'ez' =>
51
    array (
52
      0 => 'application/andrew-inset',
53
    ),
54
  ),
55
);
56
    // phpcs:enable
57
}
58