Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
afc57cae
Commit
afc57cae
authored
8 years ago
by
Jaime Pérez
Browse files
Options
Downloads
Patches
Plain Diff
Minor code style fixes.
parent
62440d33
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/SimpleSAML/Locale/Language.php
+0
-1
0 additions, 1 deletion
lib/SimpleSAML/Locale/Language.php
lib/SimpleSAML/Locale/Translate.php
+3
-2
3 additions, 2 deletions
lib/SimpleSAML/Locale/Translate.php
with
3 additions
and
3 deletions
lib/SimpleSAML/Locale/Language.php
+
0
−
1
View file @
afc57cae
...
@@ -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
];
...
...
This diff is collapsed.
Click to expand it.
lib/SimpleSAML/Locale/Translate.php
+
3
−
2
View file @
afc57cae
...
@@ -228,7 +228,7 @@ class Translate
...
@@ -228,7 +228,7 @@ class Translate
*
*
* @return string The tag, unchanged.
* @return string The tag, unchanged.
*/
*/
static
publ
ic
function
noop
(
$tag
)
public
stat
ic
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.
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment