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)
1414 }
1515 }
1616
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-
2817 public static function getGithubKeys ($ username )
2918 {
3019 $ url = "https://api.github.com/users/ $ username/keys " ;
Original file line number Diff line number Diff line change 5151 }
5252
5353 if (!empty ($ added_keys )) {
54- $ added_keys = UnitySite:: removeTrailingWhitespace ( $ added_keys );
54+ $ added_keys = array_map (trim, $ added_keys );
5555 $ totalKeys = array_merge ($ USER ->getSSHKeys (), $ added_keys );
5656 $ USER ->setSSHKeys ($ totalKeys , $ OPERATOR );
5757 }
You can’t perform that action at this time.
0 commit comments