Passed
Branch master (e8c874)
by Domenico
03:00
created
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.
src/Utils/Emoji.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7404,7 +7404,7 @@
 block discarded – undo
7404 7404
             '
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7402,7 +7402,7 @@
 block discarded – undo
7402 7402
             '
Please login to merge, or discard this patch.