Skip to content
Snippets Groups Projects
Commit afc57cae authored by Jaime Pérez's avatar Jaime Pérez
Browse files

Minor code style fixes.

parent 62440d33
No related branches found
No related tags found
No related merge requests found
...@@ -266,7 +266,6 @@ class Language ...@@ -266,7 +266,6 @@ class Language
$bestScore = -1.0; $bestScore = -1.0;
foreach ($languageScore as $language => $score) { foreach ($languageScore as $language => $score) {
// apply the language map to the language code // apply the language map to the language code
if (array_key_exists($language, $languageMap)) { if (array_key_exists($language, $languageMap)) {
$language = $languageMap[$language]; $language = $languageMap[$language];
......
...@@ -228,7 +228,7 @@ class Translate ...@@ -228,7 +228,7 @@ class Translate
* *
* @return string The tag, unchanged. * @return string The tag, unchanged.
*/ */
static public function noop($tag) public static function noop($tag)
{ {
return $tag; return $tag;
} }
...@@ -251,7 +251,8 @@ class Translate ...@@ -251,7 +251,8 @@ class Translate
* (language => text) mappings. The array version will go away in 2.0 * (language => text) mappings. The array version will go away in 2.0
* @param array $replacements An associative array of keys that should be replaced with values in the * @param array $replacements An associative array of keys that should be replaced with values in the
* translated string. * translated string.
* @param boolean $fallbackdefault Default translation to use as a fallback if no valid translation was found. @deprecated Not used in twig, gettext * @param boolean $fallbackdefault Default translation to use as a fallback if no valid translation was found.
* @deprecated Not used in twig, gettext
* *
* @return string The translated tag, or a placeholder value if the tag wasn't found. * @return string The translated tag, or a placeholder value if the tag wasn't found.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment