From 0c7c0d155b1c5779dc61fc6aa018b71577bb75a3 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Mon, 26 Apr 2021 11:54:58 +0100 Subject: [PATCH] chore: lint --- src/footnotes.php | 6 +++--- src/includes/class-footnotes-deactivator.php | 10 +++++----- src/includes/class-footnotes.php | 10 ++++++---- src/includes/template.php | 2 +- src/index.php | 1 - 5 files changed, 15 insertions(+), 14 deletions(-) delete mode 100755 src/index.php diff --git a/src/footnotes.php b/src/footnotes.php index f208a09..64bee70 100755 --- a/src/footnotes.php +++ b/src/footnotes.php @@ -38,7 +38,7 @@ if ( ! defined( 'WPINC' ) ) { /** * Current plugin version. */ -define('C_STR_FOOTNOTES_VERSION', '2.8.0d'); +define( 'C_STR_FOOTNOTES_VERSION', '2.8.0d' ); /** * Defines the current environment ('development' or 'production'). @@ -47,7 +47,7 @@ define('C_STR_FOOTNOTES_VERSION', '2.8.0d'); * * @since 2.5.5 */ -define('PRODUCTION_ENV' , false); +define( 'PRODUCTION_ENV', false ); /** * The code that runs during plugin activation. @@ -92,6 +92,6 @@ function run_footnotes() { // Add the links to the dashboard plugins page. // TODO: Move this somewhere more appropriate. - add_filter( "plugin_action_links_footnotes/footnotes.php", array( 'Footnotes_Hooks', 'get_plugin_links' ), 10, 2 ); + add_filter( 'plugin_action_links_footnotes/footnotes.php', array( 'Footnotes_Hooks', 'get_plugin_links' ), 10, 2 ); } run_footnotes(); diff --git a/src/includes/class-footnotes-deactivator.php b/src/includes/class-footnotes-deactivator.php index e9de651..953ce4b 100644 --- a/src/includes/class-footnotes-deactivator.php +++ b/src/includes/class-footnotes-deactivator.php @@ -1,11 +1,11 @@ plugin_directory . $template_name ) ) { $located = $this->plugin_directory . $template_name; } - + return $located; } diff --git a/src/index.php b/src/index.php deleted file mode 100755 index 8142269..0000000 --- a/src/index.php +++ /dev/null @@ -1 +0,0 @@ -