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 ( c84114...9a61a5 )
by Eric
04:21
created
widget.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
 
49 49
 	public function form( $instance ) {
50 50
 
51
-        $title     = isset( $instance[ 'title' ] )     ? $instance[ 'title' ]     : '';
52
-        $button = isset( $instance[ 'button' ] )    ? $instance[ 'button' ]    : '';
53
-        $size      = isset( $instance[ 'size' ] )      ? $instance[ 'size' ]      : 'big';
54
-        $style     = isset( $instance[ 'style' ] )     ? $instance[ 'style' ]     : 'filled';
55
-        $format    = isset( $instance[ 'format' ] )    ? $instance[ 'format' ]    : 'cover';
56
-        $autowidth = isset( $instance[ 'autowidth' ] ) ? $instance[ 'autowidth' ] : true;
57
-        $infotext  = isset( $instance[ 'infotext' ] )  ? $instance[ 'infotext' ]  : '';
58
-        $color     = isset( $instance[ 'color' ] )     ? $instance[ 'color' ]     : '#75ad91';
51
+		$title     = isset( $instance[ 'title' ] )     ? $instance[ 'title' ]     : '';
52
+		$button = isset( $instance[ 'button' ] )    ? $instance[ 'button' ]    : '';
53
+		$size      = isset( $instance[ 'size' ] )      ? $instance[ 'size' ]      : 'big';
54
+		$style     = isset( $instance[ 'style' ] )     ? $instance[ 'style' ]     : 'filled';
55
+		$format    = isset( $instance[ 'format' ] )    ? $instance[ 'format' ]    : 'cover';
56
+		$autowidth = isset( $instance[ 'autowidth' ] ) ? $instance[ 'autowidth' ] : true;
57
+		$infotext  = isset( $instance[ 'infotext' ] )  ? $instance[ 'infotext' ]  : '';
58
+		$color     = isset( $instance[ 'color' ] )     ? $instance[ 'color' ]     : '#75ad91';
59 59
 
60 60
 		$buttons = \PodloveSubscribeButton\Model\Button::all();
61 61
 		if ( is_multisite() )
@@ -85,14 +85,14 @@  discard block
 block discarded – undo
85 85
 						foreach ($buttons as $subscribebutton) {
86 86
 							echo "<option value='" . sanitize_title($subscribebutton->name) . "' " . selected( sanitize_title($subscribebutton->name), $button ) . " >" . sanitize_title($subscribebutton->title) . " (" . sanitize_title($subscribebutton->name) . ")</option>";
87 87
 						}
88
-                        ?>
88
+						?>
89 89
                     </optgroup>
90 90
                     <optgroup label="<?php _e('Network', 'podlove'); ?>">
91 91
 						<?php
92 92
 						foreach ($network_buttons as $subscribebutton) {
93 93
 							echo "<option value='" . sanitize_title($subscribebutton->name) . "' " . selected( sanitize_title($subscribebutton->name), $button ) . " >" . sanitize_title($subscribebutton->title) . " (" . sanitize_title($subscribebutton->name) . ")</option>";
94 94
 						}
95
-                        ?>
95
+						?>
96 96
                     </optgroup>
97 97
 				<?php else :
98 98
 					foreach ($buttons as $subscribebutton) {
@@ -150,5 +150,5 @@  discard block
 block discarded – undo
150 150
 	}
151 151
 }
152 152
 add_action( 'widgets_init', function(){
153
-     register_widget( '\PodloveSubscribeButton\Podlove_Subscribe_Button_Widget' );
153
+	 register_widget( '\PodloveSubscribeButton\Podlove_Subscribe_Button_Widget' );
154 154
 });
Please login to merge, or discard this patch.
settings/buttons_list_table.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 namespace PodloveSubscribeButton;
3 3
 
4 4
 if( ! class_exists( 'WP_List_Table' ) ){
5
-    require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
5
+	require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
6 6
 }
7 7
 
8 8
 class Button_List_Table extends \WP_List_Table {
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
 
13 13
 		// Set parent defaults
14 14
 		parent::__construct( array(
15
-		    'singular'  => 'feed',   // singular name of the listed records
16
-		    'plural'    => 'feeds',  // plural name of the listed records
17
-		    'ajax'      => false  // does this table support ajax?
15
+			'singular'  => 'feed',   // singular name of the listed records
16
+			'plural'    => 'feeds',  // plural name of the listed records
17
+			'ajax'      => false  // does this table support ajax?
18 18
 		) );
19 19
 	}
20 20
 
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 		);
27 27
 
28 28
 		return sprintf('%1$s %2$s',
29
-		    /*$1%s*/ sanitize_title($button->title) . '<br><code>[podlove-subscribe-button button="' . sanitize_text_field($button->name) . '"]</code>',
30
-		    /*$3%s*/ $this->row_actions( $actions )
29
+			/*$1%s*/ sanitize_title($button->title) . '<br><code>[podlove-subscribe-button button="' . sanitize_text_field($button->name) . '"]</code>',
30
+			/*$3%s*/ $this->row_actions( $actions )
31 31
 		);
32 32
 	}
33 33
 
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
 
90 90
 		// register pagination options & calculations
91 91
 		$this->set_pagination_args( array(
92
-		    'total_items' => $total_items,
93
-		    'per_page'    => $per_page,
94
-		    'total_pages' => ceil( $total_items / $per_page )
92
+			'total_items' => $total_items,
93
+			'per_page'    => $per_page,
94
+			'total_pages' => ceil( $total_items / $per_page )
95 95
 		) );
96 96
 	}
97 97
 
Please login to merge, or discard this patch.
settings/buttons.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
 		if ( null == filter_input(INPUT_GET, 'button') )
49 49
 			return;
50 50
 
51
-        if (!wp_verify_nonce($_REQUEST['_psb_nonce'])) {
52
-            return;
53
-        }
51
+		if (!wp_verify_nonce($_REQUEST['_psb_nonce'])) {
52
+			return;
53
+		}
54 54
 
55 55
 		$post = filter_input_array(INPUT_POST);
56 56
 
@@ -111,15 +111,15 @@  discard block
 block discarded – undo
111 111
 		if ( null === filter_input(INPUT_GET, 'button') )
112 112
 			return;
113 113
 
114
-        $action = ( null !== filter_input(INPUT_GET, 'action') ? filter_input(INPUT_GET, 'action') : null );
114
+		$action = ( null !== filter_input(INPUT_GET, 'action') ? filter_input(INPUT_GET, 'action') : null );
115 115
 
116
-        if (!in_array($action, ['save', 'create', 'delete'])) {
117
-            return;
118
-        }
116
+		if (!in_array($action, ['save', 'create', 'delete'])) {
117
+			return;
118
+		}
119 119
 
120
-        if (!wp_verify_nonce($_REQUEST['_psb_nonce'])) {
121
-            return;
122
-        }            
120
+		if (!wp_verify_nonce($_REQUEST['_psb_nonce'])) {
121
+			return;
122
+		}            
123 123
 
124 124
 		if ( $action === 'save' ) {
125 125
 			self::save();
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 			filter_input(INPUT_GET, 'page'),
345 345
 			$action,
346 346
 			$button->id,
347
-            wp_create_nonce(),
347
+			wp_create_nonce(),
348 348
 			$type == 'button' ? ' class="button"' : ''
349 349
 		);
350 350
 	}
Please login to merge, or discard this patch.