Test Failed
Branch master (e8c874)
by Domenico
03:40
created
src/XliffUtils/CheckPipeline/CheckMateCATConverter.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,17 +13,17 @@
 block discarded – undo
13 13
     {
14 14
         $fileType = [];
15 15
 
16
-        if (isset($tmp[ 0 ])) {
17
-            preg_match('#tool-id\s*=\s*"matecat-converter(\s+([^"]+))?"#i', $tmp[ 0 ], $matches);
16
+        if (isset($tmp[0])) {
17
+            preg_match('#tool-id\s*=\s*"matecat-converter(\s+([^"]+))?"#i', $tmp[0], $matches);
18 18
             if (!empty($matches)) {
19
-                $fileType[ 'proprietary' ]            = false;
20
-                $fileType[ 'proprietary_name' ]       = 'MateCAT Converter';
21
-                $fileType[ 'proprietary_short_name' ] = 'matecat_converter';
22
-                if (isset($matches[ 2 ])) {
23
-                    $fileType[ 'converter_version' ] = $matches[ 2 ];
19
+                $fileType['proprietary']            = false;
20
+                $fileType['proprietary_name']       = 'MateCAT Converter';
21
+                $fileType['proprietary_short_name'] = 'matecat_converter';
22
+                if (isset($matches[2])) {
23
+                    $fileType['converter_version'] = $matches[2];
24 24
                 } else {
25 25
                     // First converter release didn't specify version
26
-                    $fileType[ 'converter_version' ] = '1.0';
26
+                    $fileType['converter_version'] = '1.0';
27 27
                 }
28 28
 
29 29
                 return $fileType;
Please login to merge, or discard this patch.
src/XliffUtils/CheckPipeline/CheckSDL.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/XliffUtils/XmlParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.