| Total Complexity | 4 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | trait FileFormatsTrait |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Return array of image formats (extensions) supported by ReportingCloud |
||
| 26 | * |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | 5 | public static function getImageFormats(): array |
|
| 30 | { |
||
| 31 | return [ |
||
| 32 | 5 | 'BMP', |
|
| 33 | 'GIF', |
||
| 34 | 'JPG', |
||
| 35 | 'PNG', |
||
| 36 | ]; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Return array of template formats (extensions) supported by ReportingCloud |
||
| 41 | * |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | 46 | public static function getTemplateFormats(): array |
|
| 45 | { |
||
| 46 | return [ |
||
| 47 | 46 | 'DOC', |
|
| 48 | 'DOCX', |
||
| 49 | 'RTF', |
||
| 50 | 'TX', |
||
| 51 | ]; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Return array of document formats (extensions) supported by ReportingCloud |
||
| 56 | * |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | 10 | public static function getDocumentFormats(): array |
|
| 68 | ]; |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Return array of return formats (extensions) supported by ReportingCloud |
||
| 73 | * |
||
| 74 | * @return array |
||
| 75 | */ |
||
| 76 | 28 | public static function getReturnFormats(): array |
|
| 89 |