Skip to content

Commit 752d807

Browse files
author
xxsimoxx
committed
Change trim order
1 parent c0d499d commit 752d807

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cp-contributors.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function get_cp_contributors() {
8888
}
8989

9090
public function maybe_resolve_github_username($name) {
91-
$name = trim(trim($name, ' .'));
91+
$name = trim(trim($name), ' .');
9292
$cp_contributors = $this->get_cp_contributors();
9393
if (isset($cp_contributors[$name])) {
9494
return $cp_contributors[$name];
@@ -116,14 +116,14 @@ function format_commit($text) {
116116
return $text;
117117
}
118118

119-
public function render_page() {
119+
public function render_page() { //phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh
120120
echo '<div class="wrap">';
121121
echo '<h1>ClassicPress Contributors</h1>';
122122

123123
if (defined('\GITHUB_API_TOKEN')) {
124124
$check_token = $this->get_github_endpoint('https://api.github.com/');
125125
if (is_array($check_token) && isset($check_token['status'])) {
126-
printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr('notice notice-error'), esc_html('Error with your GitHub Personal Access Token'));
126+
printf('<div class="%1$s"><p>%2$s</p></div>', esc_attr('notice notice-error'), esc_html('Error with your GitHub Personal Access Token'));
127127
echo '</div>';
128128
exit;
129129
}

0 commit comments

Comments
 (0)