Completed
Push — master ( 3c05a4...0d3b31 )
by Fulvio
01:21
created
src/Admin.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 namespace WP_PHP_Console;
16 16
 
17
-defined( 'ABSPATH' ) or exit;
17
+defined('ABSPATH') or exit;
18 18
 
19 19
 /**
20 20
  * WP PHP Console admin handler.
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 		self::output_admin_notices();
36 36
 
37 37
 		// init settings page
38
-		if ( ! defined( 'DOING_AJAX' ) ) {
38
+		if ( ! defined('DOING_AJAX')) {
39 39
 			new Admin\SettingsPage();
40 40
 		}
41 41
 	}
@@ -49,21 +49,21 @@  discard block
 block discarded – undo
49 49
 	private static function output_admin_notices() {
50 50
 
51 51
 		// display admin notice and abort if no password has been set
52
-		add_action( 'admin_notices', static function() {
53
-			if ( ! Settings::has_eval_terminal_password() ) :
52
+		add_action('admin_notices', static function() {
53
+			if ( ! Settings::has_eval_terminal_password()) :
54 54
 				?>
55 55
 				<div class="update-nag">
56 56
 					<p><?php printf(
57 57
 						/* translators: Placeholders: %1$s - WP PHP Console name, %2$s - opening HTML <a> link tag; %3$s closing HTML </a> link tag */
58
-							__( '%1$s: Please remember to %2$sset a password%3$s if you want to enable the terminal.', 'wp-php-console' ),
59
-							'<strong>' . Plugin::NAME . '</strong>',
60
-							'<a href="' . esc_url( admin_url( 'options-general.php?page=wp-php-console' ) ) .'">',
58
+							__('%1$s: Please remember to %2$sset a password%3$s if you want to enable the terminal.', 'wp-php-console'),
59
+							'<strong>'.Plugin::NAME.'</strong>',
60
+							'<a href="'.esc_url(admin_url('options-general.php?page=wp-php-console')).'">',
61 61
 							'</a>'
62 62
 						); ?></p>
63 63
 				</div>
64 64
 			<?php
65 65
 			endif;
66
-		}, -1000 );
66
+		}, -1000);
67 67
 	}
68 68
 
69 69
 
@@ -74,13 +74,13 @@  discard block
 block discarded – undo
74 74
 	 */
75 75
 	private static function add_plugin_page_row_action_links() {
76 76
 
77
-		add_filter( 'plugin_action_links_wp-php-console/wp-php-console.php', static function( $actions ) {
78
-			return array_merge( [
79
-				'<a href="' . esc_url( admin_url() ) . '">' . esc_html__( 'Settings', 'wp-php-console' ) . '</a>',
80
-				'<a href="' . esc_url( Plugin::get_project_page_url() ) . '">' . esc_html__( 'GitHub', 'wp-php-console' ) . '</a>',
81
-				'<a href="' . esc_url( Plugin::get_support_page_url() ) . '">' . esc_html__( 'Support', 'wp-php-console' ) . '</a>',
82
-				'<a href="' . esc_url( Plugin::get_reviews_page_url() ) . '">' . esc_html__( 'Review', 'wp-php-console' ) . '</a>',
83
-			], $actions );
77
+		add_filter('plugin_action_links_wp-php-console/wp-php-console.php', static function($actions) {
78
+			return array_merge([
79
+				'<a href="'.esc_url(admin_url()).'">'.esc_html__('Settings', 'wp-php-console').'</a>',
80
+				'<a href="'.esc_url(Plugin::get_project_page_url()).'">'.esc_html__('GitHub', 'wp-php-console').'</a>',
81
+				'<a href="'.esc_url(Plugin::get_support_page_url()).'">'.esc_html__('Support', 'wp-php-console').'</a>',
82
+				'<a href="'.esc_url(Plugin::get_reviews_page_url()).'">'.esc_html__('Review', 'wp-php-console').'</a>',
83
+			], $actions);
84 84
 		} );
85 85
 	}
86 86
 
Please login to merge, or discard this patch.