chore: lint

This commit is contained in:
Ben Goldsworthy 2021-04-26 11:54:58 +01:00
parent c18a66ae95
commit 0c7c0d155b
5 changed files with 15 additions and 14 deletions

View file

@ -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();

View file

@ -1,11 +1,11 @@
<?php
/**
* Fired during plugin deactivation
* Fired during plugin deactivation.
*
* @since 2.8.0
* @since 2.8.0
*
* @package footnotes
* @subpackage footnotes/includes
* @package footnotes
* @subpackage footnotes/includes
*/
/**
@ -17,7 +17,7 @@
* @package footnotes
* @subpackage footnotes/includes
*/
class Plugin_Name_Deactivator {
class Footnotes_Deactivator {
/**
* Runs when the Plugin is deactivated.

View file

@ -1,9 +1,11 @@
<?php
<?php // phpcs:disable PEAR.Commenting.FileComment.Missing
/**
* Footnotes class
* Plugin initialiser.
*
* @package footnotes
* @since 1.5.0
* @since 1.5.0
*
* @package footnotes
* @subpackage footnotes/includes
*/
require_once dirname( __FILE__ ) . '/config.php';

View file

@ -226,7 +226,7 @@ class Footnotes_Template {
} elseif ( file_exists( $this->plugin_directory . $template_name ) ) {
$located = $this->plugin_directory . $template_name;
}
return $located;
}

View file

@ -1 +0,0 @@
<?php // Silence is golden