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 ( ff4be0...20f741 )
by Christian
03:51
created
widget.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 		parent::__construct(
22 22
 			'podlove_subscribe_button_wp_plugin_widget',
23 23
 			( self::is_podlove_publisher_active() ? 'Podlove Subscribe Button (WordPress plugin)' : 'Podlove Subscribe Button' ),
24
-			array( 'description' => __( 'Adds a Podlove Subscribe Button to your Sidebar', 'podlove-subscribe-button' ), )
24
+			array( 'description' => __( 'Adds a Podlove Subscribe Button to your Sidebar', 'podlove-subscribe-button' ),)
25 25
 		);
26 26
 
27 27
 	}
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	public function widget( $args, $instance ) {
39 39
 		// Fetch the (network)button by it's name
40 40
 		if ( ! $button = \PodloveSubscribeButton\Model\Button::get_button_by_name( $instance[ 'button' ] ) ) {
41
-			return sprintf( __( 'Oops. There is no button with the ID "%s".', 'podlove-subscribe-button' ), $args['button'] );
41
+			return sprintf( __( 'Oops. There is no button with the ID "%s".', 'podlove-subscribe-button' ), $args[ 'button' ] );
42 42
 		}
43 43
 
44 44
 		echo $args[ 'before_widget' ];
@@ -61,14 +61,14 @@  discard block
 block discarded – undo
61 61
 	}
62 62
 
63 63
 	public function form( $instance ) {
64
-		$title     = isset( $instance[ 'title' ] )     ? $instance[ 'title' ]     : '';
65
-		$button    = isset( $instance[ 'button' ] )    ? $instance[ 'button' ]    : '';
66
-		$size      = isset( $instance[ 'size' ] )      ? $instance[ 'size' ]      : 'big';
67
-		$style     = isset( $instance[ 'style' ] )     ? $instance[ 'style' ]     : 'filled';
68
-		$format    = isset( $instance[ 'format' ] )    ? $instance[ 'format' ]    : 'cover';
64
+		$title     = isset( $instance[ 'title' ] ) ? $instance[ 'title' ] : '';
65
+		$button    = isset( $instance[ 'button' ] ) ? $instance[ 'button' ] : '';
66
+		$size      = isset( $instance[ 'size' ] ) ? $instance[ 'size' ] : 'big';
67
+		$style     = isset( $instance[ 'style' ] ) ? $instance[ 'style' ] : 'filled';
68
+		$format    = isset( $instance[ 'format' ] ) ? $instance[ 'format' ] : 'cover';
69 69
 		$autowidth = isset( $instance[ 'autowidth' ] ) ? $instance[ 'autowidth' ] : true;
70
-		$infotext  = isset( $instance[ 'infotext' ] )  ? $instance[ 'infotext' ]  : '';
71
-		$color     = isset( $instance[ 'color' ] )     ? $instance[ 'color' ]     : '#75ad91';
70
+		$infotext  = isset( $instance[ 'infotext' ] ) ? $instance[ 'infotext' ] : '';
71
+		$color     = isset( $instance[ 'color' ] ) ? $instance[ 'color' ] : '#75ad91';
72 72
 
73 73
 		$buttons = \PodloveSubscribeButton\Model\Button::all();
74 74
 		if ( is_multisite() ) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,9 +104,11 @@
 block discarded – undo
104 104
 							echo "<option value='" . $subscribebutton->name . "' " . selected( $subscribebutton->name, $button ) . " >" . $subscribebutton->title . " (" . $subscribebutton->name . ")</option>";
105 105
 						} ?>
106 106
                     </optgroup>
107
-				<?php else :
107
+				<?php else {
108
+	:
108 109
 					foreach ( $buttons as $subscribebutton ) {
109 110
 						echo "<option value='" . $subscribebutton->name . "' " . selected( $subscribebutton->name, $button ) . " >" . $subscribebutton->title . " (" . $subscribebutton->name . ")</option>";
111
+}
110 112
 					}
111 113
 				endif; ?>
112 114
             </select>
Please login to merge, or discard this patch.