Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 97155b0

Browse files
committed
code optimalization
1 parent 3ad004d commit 97155b0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/Auth/Process/PerunEntitlement.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,7 @@ private function encodeName($name)
248248
];
249249

250250
$name = array_map('rawurlencode', explode(':', $name));
251-
252-
foreach ($charsToSkip as $key => $value) {
253-
$name = str_replace($value, $key, $name);
254-
}
251+
$name = str_replace(array_values($charsToSkip), array_keys($charsToSkip), $name);
255252

256253
return $name;
257254
}

0 commit comments

Comments
 (0)