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 ( d0a974...b1fd0a )
by Christian
02:56
created
inc/Widget.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 		'autowidth',
22 22
 		'button',
23 23
 		'color',
24
-        'language'
24
+		'language'
25 25
 	);
26 26
 
27 27
 	public function __construct() {
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 			\PodloveSubscribeButton::get_array_value_with_fallback( $instance, 'format' ),
50 50
 			\PodloveSubscribeButton::get_array_value_with_fallback( $instance, 'color' ),
51 51
 			false,
52
-            false,
52
+			false,
53 53
 			\PodloveSubscribeButton::get_array_value_with_fallback( $instance, 'language' )
54 54
 		);
55 55
 
Please login to merge, or discard this 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 = \PodloveSubscribeButton\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 = \PodloveSubscribeButton\Model\Button::all();
76 76
 		if ( is_multisite() ) {
Please login to merge, or discard this patch.
inc/Settings/Buttons.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
                     <td>
176 176
                         <select name="podlove_subscribe_button_default_size" id="podlove_subscribe_button_default_size">
177 177
 							<?php foreach ( \PodloveSubscribeButton\Defaults::button( 'size' ) as $value => $description ) : ?>
178
-                                <option value="<?php echo $value; ?>" <?php selected( $settings['size'], $value ); ?>><?php echo $description; ?></option>
178
+                                <option value="<?php echo $value; ?>" <?php selected( $settings[ 'size' ], $value ); ?>><?php echo $description; ?></option>
179 179
 							<?php endforeach; ?>
180 180
                         </select>
181 181
                     </td>
@@ -184,14 +184,14 @@  discard block
 block discarded – undo
184 184
                     <th scope="row"><label for="podlove_subscribe_button_default_autowidth"><?php _e( 'Autowidth', 'podlove-subscribe-button' ); ?></label></th>
185 185
                     <td>
186 186
                         <input type="checkbox" name="podlove_subscribe_button_default_autowidth"
187
-                               id="podlove_subscribe_button_default_autowidth" <?php checked( $settings['autowidth'], 'on' ); ?> />
187
+                               id="podlove_subscribe_button_default_autowidth" <?php checked( $settings[ 'autowidth' ], 'on' ); ?> />
188 188
                     </td>
189 189
                 </tr>
190 190
                 <tr valign="top">
191 191
                     <th scope="row"><label for="podlove_subscribe_button_default_color"><?php _e( 'Color', 'podlove-subscribe-button' ); ?></label></th>
192 192
                     <td>
193 193
                         <input id="podlove_subscribe_button_default_color" name="podlove_subscribe_button_default_color" class="podlove_subscribe_button_color"
194
-                               value="<?php echo $settings['color'] ?>"/>
194
+                               value="<?php echo $settings[ 'color' ] ?>"/>
195 195
                     </td>
196 196
                 </tr>
197 197
                 <tr valign="top">
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
                     <td>
200 200
                         <select name="podlove_subscribe_button_default_style" id="podlove_subscribe_button_default_style">
201 201
 							<?php foreach ( \PodloveSubscribeButton\Defaults::button( 'style' ) as $value => $description ) : ?>
202
-                                <option value="<?php echo $value; ?>" <?php selected( $settings['style'], $value ); ?>><?php echo $description; ?></option>
202
+                                <option value="<?php echo $value; ?>" <?php selected( $settings[ 'style' ], $value ); ?>><?php echo $description; ?></option>
203 203
 							<?php endforeach; ?>
204 204
                         </select>
205 205
                     </td>
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
                     <td>
210 210
                         <select name="podlove_subscribe_button_default_format" id="podlove_subscribe_button_default_format">
211 211
 							<?php foreach ( \PodloveSubscribeButton\Defaults::button( 'format' ) as $value => $description ) : ?>
212
-                                <option value="<?php echo $value; ?>" <?php selected( $settings['format'], $value ); ?>><?php echo $description; ?></option>
212
+                                <option value="<?php echo $value; ?>" <?php selected( $settings[ 'format' ], $value ); ?>><?php echo $description; ?></option>
213 213
 							<?php endforeach; ?>
214 214
                         </select>
215 215
                     </td>
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                     <td>
220 220
                         <select name="podlove_subscribe_button_default_language" id="podlove_subscribe_button_default_language">
221 221
 							<?php foreach ( \PodloveSubscribeButton\Defaults::button( 'language' ) as $value ) : ?>
222
-                                <option value="<?php echo $value; ?>" <?php selected( $settings['language'], $value ); ?>><?php echo $value; ?></option>
222
+                                <option value="<?php echo $value; ?>" <?php selected( $settings[ 'language' ], $value ); ?>><?php echo $value; ?></option>
223 223
 							<?php endforeach; ?>
224 224
                         </select>
225 225
                     </td>
Please login to merge, or discard this patch.