Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function check( ?array $tmp = [] ): ?array { |
||
12 | $fileType = []; |
||
13 | |||
14 | if ( isset( $tmp[ 0 ] ) ) { |
||
15 | if ( stripos( $tmp[ 0 ], 'sdl:version' ) !== false ) { |
||
16 | //little trick, we consider not proprietary Sdlxliff files because we can handle them |
||
17 | $fileType[ 'proprietary' ] = false; |
||
18 | $fileType[ 'proprietary_name' ] = 'SDL Studio '; |
||
19 | $fileType[ 'proprietary_short_name' ] = 'trados'; |
||
20 | $fileType[ 'converter_version' ] = 'legacy'; |
||
21 | |||
22 | return $fileType; |
||
23 | } |
||
24 | } |
||
25 | |||
26 | return null; |
||
27 | } |
||
29 |