Passed
Push — master ( b24d67...98f0e0 )
by mon
02:06
created

MiniMap   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 50
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFileName() 0 4 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
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