Total Complexity | 8 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class VerifyDocuments |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | protected static $dispute_evidence_types = [ |
||
13 | 'application/pdf', |
||
14 | 'image/gif', |
||
15 | 'image/jpeg', |
||
16 | 'image/png', |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected static $dispute_evidence_file_size = 10; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected static $dispute_evidences_size = 50; |
||
28 | |||
29 | /** |
||
30 | * Get Mime type from filename. |
||
31 | * |
||
32 | * @param string $file |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public static function getMimeType($file) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Check if the evidence file being submitted mime type is valid. |
||
43 | * |
||
44 | * @param array $files |
||
45 | * |
||
46 | * @return bool |
||
47 | */ |
||
48 | public static function isValidEvidenceFile(array $files) |
||
79 |