for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Matecat\XliffParser\XliffUtils\CheckPipeline;
class CheckSDL implements CheckInterface {
/**
* @param array|null $tmp
*
* @return array|null
*/
public function check( ?array $tmp = [] ): ?array {
$fileType = [];
if ( isset( $tmp[ 0 ] ) ) {
if ( stripos( $tmp[ 0 ], 'sdl:version' ) !== false ) {
//little trick, we consider not proprietary Sdlxliff files because we can handle them
$fileType[ 'proprietary' ] = false;
$fileType[ 'proprietary_name' ] = 'SDL Studio ';
$fileType[ 'proprietary_short_name' ] = 'trados';
$fileType[ 'converter_version' ] = 'legacy';
return $fileType;
}
return null;