@@ -8,13 +8,13 @@ |
||
| 8 | 8 | { |
| 9 | 9 | $fileType = []; |
| 10 | 10 | |
| 11 | - if (isset($tmp[ 0 ])) { |
|
| 12 | - if (stripos($tmp[ 0 ], 'sdl:version') !== false) { |
|
| 11 | + if (isset($tmp[0])) { |
|
| 12 | + if (stripos($tmp[0], 'sdl:version') !== false) { |
|
| 13 | 13 | //little trick, we consider not proprietary Sdlxliff files because we can handle them |
| 14 | - $fileType[ 'proprietary' ] = false; |
|
| 15 | - $fileType[ 'proprietary_name' ] = 'SDL Studio '; |
|
| 16 | - $fileType[ 'proprietary_short_name' ] = 'trados'; |
|
| 17 | - $fileType[ 'converter_version' ] = 'legacy'; |
|
| 14 | + $fileType['proprietary'] = false; |
|
| 15 | + $fileType['proprietary_name'] = 'SDL Studio '; |
|
| 16 | + $fileType['proprietary_short_name'] = 'trados'; |
|
| 17 | + $fileType['converter_version'] = 'legacy'; |
|
| 18 | 18 | |
| 19 | 19 | return $fileType; |
| 20 | 20 | } |
@@ -65,8 +65,8 @@ |
||
| 65 | 65 | } catch (\Exception $e) { |
| 66 | 66 | $valid = false; |
| 67 | 67 | } |
| 68 | - } elseif (!is_array($schemaOrCallable) && is_file((string) $schemaOrCallable)) { |
|
| 69 | - $schemaSource = file_get_contents((string) $schemaOrCallable); |
|
| 68 | + } elseif (!is_array($schemaOrCallable) && is_file((string)$schemaOrCallable)) { |
|
| 69 | + $schemaSource = file_get_contents((string)$schemaOrCallable); |
|
| 70 | 70 | $valid = @$dom->schemaValidateSource($schemaSource); |
| 71 | 71 | } else { |
| 72 | 72 | libxml_use_internal_errors($internalErrors); |
@@ -7404,7 +7404,7 @@ |
||
| 7404 | 7404 | ' |
@@ -7402,7 +7402,7 @@ |
||
| 7402 | 7402 | ' |