Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
token
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
token
Merge requests
!70
Fix numeric token type names being reset
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Fix numeric token type names being reset
issue/token-3419185:3419185-numeric-token-type
into
8.x-1.x
Overview
0
Commits
2
Pipelines
2
Changes
1
Open
Sascha Grossenbacher
requested to merge
issue/token-3419185:3419185-numeric-token-type
into
8.x-1.x
1 year ago
Overview
0
Commits
2
Pipelines
2
Changes
1
Expand
Closes
#3419185
0
0
Merge request reports
Compare
8.x-1.x
version 1
d972c4ee
1 year ago
8.x-1.x (HEAD)
and
latest version
latest version
1cc21b2b
2 commits,
1 year ago
version 1
d972c4ee
1 commit,
1 year ago
1 file
+
3
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Token.php
+
3
−
1
Options
@@ -61,7 +61,9 @@ class Token extends TokenBase implements TokenInterface {
@@ -61,7 +61,9 @@ class Token extends TokenBase implements TokenInterface {
array_multisort
(
$by_name
,
SORT_ASC
,
SORT_NATURAL
|
SORT_FLAG_CASE
,
$token_info
[
'types'
]);
array_multisort
(
$by_name
,
SORT_ASC
,
SORT_NATURAL
|
SORT_FLAG_CASE
,
$token_info
[
'types'
]);
foreach
(
array_keys
(
$token_info
[
'tokens'
])
as
$type
)
{
foreach
(
array_keys
(
$token_info
[
'tokens'
])
as
$type
)
{
$by_name
=
$this
->
prepareMultisort
(
$token_info
[
'tokens'
][
$type
]);
$by_name
=
$this
->
prepareMultisort
(
$token_info
[
'tokens'
][
$type
]);
array_multisort
(
$by_name
,
SORT_ASC
,
SORT_NATURAL
|
SORT_FLAG_CASE
,
$token_info
[
'tokens'
][
$type
]);
$keys
=
array_keys
(
$by_name
);
array_multisort
(
$by_name
,
SORT_ASC
,
SORT_NATURAL
|
SORT_FLAG_CASE
,
$token_info
[
'tokens'
][
$type
],
$keys
);
$token_info
[
'tokens'
][
$type
]
=
array_combine
(
$keys
,
$token_info
[
'tokens'
][
$type
]);
}
}
$this
->
tokenInfo
=
$token_info
;
$this
->
tokenInfo
=
$token_info
;
Loading