File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,6 @@ public static function redirect($destination)
14
14
}
15
15
}
16
16
17
- public static function removeTrailingWhitespace ($ arr )
18
- {
19
- $ out = array ();
20
- foreach ($ arr as $ str ) {
21
- $ new_string = rtrim ($ str );
22
- array_push ($ out , $ new_string );
23
- }
24
-
25
- return $ out ;
26
- }
27
-
28
17
public static function getGithubKeys ($ username )
29
18
{
30
19
$ url = "https://api.github.com/users/ $ username/keys " ;
Original file line number Diff line number Diff line change 51
51
}
52
52
53
53
if (!empty ($ added_keys )) {
54
- $ added_keys = UnitySite:: removeTrailingWhitespace ( $ added_keys );
54
+ $ added_keys = array_map (trim, $ added_keys );
55
55
$ totalKeys = array_merge ($ USER ->getSSHKeys (), $ added_keys );
56
56
$ USER ->setSSHKeys ($ totalKeys , $ OPERATOR );
57
57
}
You can’t perform that action at this time.
0 commit comments