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 ( 33ed65...dc0f35 )
by Christian
02:27
created
inc/Helpers.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,9 @@
 block discarded – undo
84 84
 		$plugin  = self::get_basename();
85 85
 		$blogids = $wpdb->get_col( "SELECT blog_id FROM " . $wpdb->blogs );
86 86
 
87
-		if ( ! is_array( $blogids ) )
88
-			return;
87
+		if ( ! is_array( $blogids ) ) {
88
+					return;
89
+		}
89 90
 
90 91
 		foreach ( $blogids as $blog_id ) {
91 92
 			switch_to_blog( $blog_id );
Please login to merge, or discard this patch.
inc/Widget.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 		parent::__construct(
29 29
 			'podlove_subscribe_button_wp_plugin_widget',
30 30
 			( Helpers::is_podlove_publisher_active() ? 'Podlove Subscribe Button (WordPress plugin)' : 'Podlove Subscribe Button' ),
31
-			array( 'description' => __( 'Adds a Podlove Subscribe Button to your Sidebar', 'podlove-subscribe-button' ), )
31
+			array( 'description' => __( 'Adds a Podlove Subscribe Button to your Sidebar', 'podlove-subscribe-button' ),)
32 32
 		);
33 33
 
34 34
 	}
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	public function widget( $args, $instance ) {
37 37
 		// Fetch the (network)button by it's name
38 38
 		if ( ! $button = Model\Button::get_button_by_name( $instance[ 'button' ] ) ) {
39
-			return sprintf( __( 'Oops. There is no button with the ID "%s".', 'podlove-subscribe-button' ), $args['button'] );
39
+			return sprintf( __( 'Oops. There is no button with the ID "%s".', 'podlove-subscribe-button' ), $args[ 'button' ] );
40 40
 		}
41 41
 
42 42
 		echo $args[ 'before_widget' ];
@@ -62,15 +62,15 @@  discard block
 block discarded – undo
62 62
 	}
63 63
 
64 64
 	public function form( $instance ) {
65
-		$title     = isset( $instance[ 'title' ] )     ? $instance[ 'title' ]     : '';
66
-		$button    = isset( $instance[ 'button' ] )    ? $instance[ 'button' ]    : '';
67
-		$size      = isset( $instance[ 'size' ] )      ? $instance[ 'size' ]      : 'big';
68
-		$style     = isset( $instance[ 'style' ] )     ? $instance[ 'style' ]     : 'filled';
69
-		$format    = isset( $instance[ 'format' ] )    ? $instance[ 'format' ]    : 'cover';
65
+		$title     = isset( $instance[ 'title' ] ) ? $instance[ 'title' ] : '';
66
+		$button    = isset( $instance[ 'button' ] ) ? $instance[ 'button' ] : '';
67
+		$size      = isset( $instance[ 'size' ] ) ? $instance[ 'size' ] : 'big';
68
+		$style     = isset( $instance[ 'style' ] ) ? $instance[ 'style' ] : 'filled';
69
+		$format    = isset( $instance[ 'format' ] ) ? $instance[ 'format' ] : 'cover';
70 70
 		$autowidth = isset( $instance[ 'autowidth' ] ) ? $instance[ 'autowidth' ] : true;
71
-		$infotext  = isset( $instance[ 'infotext' ] )  ? $instance[ 'infotext' ]  : '';
72
-		$color     = isset( $instance[ 'color' ] )     ? $instance[ 'color' ]     : '#75ad91';
73
-		$language  = isset( $instance[ 'language' ] )  ? $instance[ 'language' ]  : Defaults::options()['language'];
71
+		$infotext  = isset( $instance[ 'infotext' ] ) ? $instance[ 'infotext' ] : '';
72
+		$color     = isset( $instance[ 'color' ] ) ? $instance[ 'color' ] : '#75ad91';
73
+		$language  = isset( $instance[ 'language' ] ) ? $instance[ 'language' ] : Defaults::options()[ 'language' ];
74 74
 
75 75
 		$buttons = Model\Button::all();
76 76
 		if ( is_multisite() ) {
Please login to merge, or discard this patch.
podlove.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
 
51 51
 require_once __DIR__ . '/vendor/autoload.php';
52 52
 
53
-register_activation_hook(   __FILE__, array( 'PodloveSubscribeButton\Setup', 'activation' ) );
53
+register_activation_hook( __FILE__, array( 'PodloveSubscribeButton\Setup', 'activation' ) );
54 54
 register_deactivation_hook( __FILE__, array( 'PodloveSubscribeButton\Setup', 'deactivation' ) );
55
-register_uninstall_hook(    __FILE__, array( 'PodloveSubscribeButton\Setup', 'uninstall' ) );
55
+register_uninstall_hook( __FILE__, array( 'PodloveSubscribeButton\Setup', 'uninstall' ) );
56 56
 
57 57
 PodloveSubscribeButton\Migration::eval_db();
58 58
 PodloveSubscribeButton::run();
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 		}
102 102
 
103 103
 		// CSS Stylesheet
104
-		wp_register_style( 'podlove-subscribe-button', \PodloveSubscribeButton\Helpers::get_url( '' ) . 'css/style.css' , false, self::$version );
104
+		wp_register_style( 'podlove-subscribe-button', \PodloveSubscribeButton\Helpers::get_url( '' ) . 'css/style.css', false, self::$version );
105 105
 		wp_enqueue_style( 'podlove-subscribe-button' );
106 106
 
107 107
 		// Admin JS
Please login to merge, or discard this patch.