GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 8bc841...6dee4e )
by Christian
03:03
created

helper.php (19 issues)

1
<?php
2
3
namespace PodloveSubscribeButton;
4
5
function for_every_podcast_blog($callback) {
0 ignored issues
show
Expected 1 spaces after opening parenthesis; 0 found
Loading history...
No space after opening parenthesis is prohibited
Loading history...
No space before closing parenthesis is prohibited
Loading history...
6
	global $wpdb;
7
8
	$plugin  = basename(\PodloveSubscribeButton\PLUGIN_DIR) . '/' . \PodloveSubscribeButton\PLUGIN_FILE_NAME;
0 ignored issues
show
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
9
	$blogids = $wpdb->get_col("SELECT blog_id FROM " . $wpdb->blogs);
0 ignored issues
show
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
10
11
	if (!is_array($blogids))
0 ignored issues
show
Expected 1 space before "!"; 0 found
Loading history...
Expected 1 space after "!"; 0 found
Loading history...
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
12
		return;
13
14
	foreach ($blogids as $blog_id) {
0 ignored issues
show
No space after opening parenthesis is prohibited
Loading history...
No space before closing parenthesis is prohibited
Loading history...
15
		switch_to_blog($blog_id);
0 ignored issues
show
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
16
		if (is_plugin_active($plugin)) {
0 ignored issues
show
No space after opening parenthesis is prohibited
Loading history...
Expected 1 spaces after opening bracket; 0 found
Loading history...
Expected 1 spaces before closing bracket; 0 found
Loading history...
No space before closing parenthesis is prohibited
Loading history...
17
			$callback();
18
		}
19
		restore_current_blog();
20
	}
21
}