You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Classes/Localization/Parser/LocallangXmlParser.php
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,8 @@ class LocallangXmlParser
41
41
/**
42
42
* Loads the current XML file before processing.
43
43
*
44
-
* @return array<string, array<string, string>> An array representing a parsed XML file (structure depends on concrete parser)
44
+
* @return array<string, array<string, string>> An array representing a
45
+
* parsed XML file (structure depends on concrete parser)
45
46
* @throws InvalidXmlFileException
46
47
*/
47
48
protectedfunctionparseXmlFile(): array
@@ -57,7 +58,8 @@ protected function parseXmlFile(): array
57
58
if ($rootXmlNode === false) {
58
59
$xmlError = libxml_get_last_error();
59
60
thrownewInvalidXmlFileException(
60
-
'The path provided does not point to an existing and accessible well-formed XML file. Reason: ' . $xmlError->message . ' in ' . $this->sourcePath . ', line ' . $xmlError->line,
61
+
'The path provided does not point to an existing and accessible well-formed XML file. Reason: '
62
+
. $xmlError->message . ' in ' . $this->sourcePath . ', line ' . $xmlError->line,
61
63
1278155988
62
64
);
63
65
}
@@ -70,7 +72,8 @@ protected function parseXmlFile(): array
70
72
*
71
73
* @param string $fileRef Absolute file reference to a locallang file
72
74
* @param string $language Language key
73
-
* @param bool $sameLocation If TRUE, then locallang localization file name will be returned with the same directory as $fileRef
75
+
* @param bool $sameLocation If TRUE, then locallang localization file
76
+
* name will be returned with the same directory as $fileRef
74
77
* @return string Absolute path to the language file
0 commit comments