File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public function get_cp_contributors() {
88
88
}
89
89
90
90
public function maybe_resolve_github_username ($ name ) {
91
- $ name = trim (trim ($ name , ' . ' ) );
91
+ $ name = trim (trim ($ name) , ' . ' );
92
92
$ cp_contributors = $ this ->get_cp_contributors ();
93
93
if (isset ($ cp_contributors [$ name ])) {
94
94
return $ cp_contributors [$ name ];
@@ -116,14 +116,14 @@ function format_commit($text) {
116
116
return $ text ;
117
117
}
118
118
119
- public function render_page () {
119
+ public function render_page () { //phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh
120
120
echo '<div class="wrap"> ' ;
121
121
echo '<h1>ClassicPress Contributors</h1> ' ;
122
122
123
123
if (defined ('\GITHUB_API_TOKEN ' )) {
124
124
$ check_token = $ this ->get_github_endpoint ('https://api.github.com/ ' );
125
125
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 ' ));
127
127
echo '</div> ' ;
128
128
exit ;
129
129
}
You can’t perform that action at this time.
0 commit comments