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.
Completed
Push — master ( 49986a...5f5d6b )
by Zhmayev
01:42
created
wp-pagespeed-purge.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 * Domain Path: /languages/
13 13
 */
14 14
 
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit; // Exit if accessed directly.
17 17
 }
18 18
 
@@ -20,42 +20,42 @@  discard block
 block discarded – undo
20 20
 
21 21
 	public function __construct() {
22 22
 		// Enqueue css and js files
23
-		add_action( 'admin_enqueue_scripts', array( $this, 'embed_admin_assets' ), 101 );
23
+		add_action('admin_enqueue_scripts', array($this, 'embed_admin_assets'), 101);
24 24
 
25 25
 		// Add 'Clear Redis cache' button to the admin bar
26
-		add_action( 'admin_bar_menu', array( $this, 'add_admin_bar_button' ), 101 );
26
+		add_action('admin_bar_menu', array($this, 'add_admin_bar_button'), 101);
27 27
 
28 28
 		// Load plugin textdomain
29
-		add_action( 'plugins_loaded', array( $this, 'load_plugin_textdomain' ) );
29
+		add_action('plugins_loaded', array($this, 'load_plugin_textdomain'));
30 30
 	}
31 31
 
32 32
 	public function embed_admin_assets() {
33 33
 		// This is where you can add your CSS/JS entries for wp-admin UI
34
-		$plugin_url = plugin_dir_url( __FILE__ );
35
-		wp_enqueue_style( 'admin-styles', sprintf( '%s/assets/wp-purge-pagespeed-button.css', $plugin_url ) );
36
-		wp_enqueue_script( 'admin-styles', sprintf( '%s/assets/wp-purge-pagespeed-button.js', $plugin_url ), array( 'jquery' ) );
34
+		$plugin_url = plugin_dir_url(__FILE__);
35
+		wp_enqueue_style('admin-styles', sprintf('%s/assets/wp-purge-pagespeed-button.css', $plugin_url));
36
+		wp_enqueue_script('admin-styles', sprintf('%s/assets/wp-purge-pagespeed-button.js', $plugin_url), array('jquery'));
37 37
 	}
38 38
 
39
-	public function add_admin_bar_button( $wp_admin_bar ) {
39
+	public function add_admin_bar_button($wp_admin_bar) {
40 40
 		$args = [
41 41
 			'id'	=> 'pagespeed_purge',
42 42
 			'href'	=> '#pagespeed_purge',
43
-			'title'	=> __( 'Purge Pagespeed Cache', 'wp-purge-pagespeed-button' ),
43
+			'title'	=> __('Purge Pagespeed Cache', 'wp-purge-pagespeed-button'),
44 44
 		];
45 45
 
46
-		$wp_admin_bar->add_menu( $args );
46
+		$wp_admin_bar->add_menu($args);
47 47
 	}
48 48
 
49 49
 	public function load_plugin_textdomain() {
50 50
 		$textdomain = 'wp-purge-pagespeed-button';
51
-		$plugin_locale = apply_filters( 'plugin_locale', get_locale(), $textdomain );
52
-		$plugin_dir = dirname( __FILE__ );
51
+		$plugin_locale = apply_filters('plugin_locale', get_locale(), $textdomain);
52
+		$plugin_dir = dirname(__FILE__);
53 53
 
54 54
 		// wp-content/languages/plugin-name/plugin-name-ru_RU.mo
55
-		load_textdomain( $textdomain, sprintf( '%s/plugins/%s-%s.mo', WP_LANG_DIR , $textdomain, $plugin_locale ) );
55
+		load_textdomain($textdomain, sprintf('%s/plugins/%s-%s.mo', WP_LANG_DIR, $textdomain, $plugin_locale));
56 56
 
57 57
 		// wp-content/plugins/plugin-name/languages/plugin-name-ru_RU.mo
58
-		load_textdomain( $textdomain, sprintf( '%s/languages/%s-%s.mo', $plugin_dir , $textdomain, $plugin_locale ) );
58
+		load_textdomain($textdomain, sprintf('%s/languages/%s-%s.mo', $plugin_dir, $textdomain, $plugin_locale));
59 59
 	}
60 60
 }
61 61
 
Please login to merge, or discard this patch.