Automatically fix 227 errors

This commit is contained in:
Ben Goldsworthy 2021-02-21 11:38:21 +00:00
parent d13245a98e
commit 09337696e2
9 changed files with 292 additions and 298 deletions

View file

@ -26,7 +26,7 @@ class MCI_Footnotes_Config {
* @since 1.5.0
* @var string
*/
const C_STR_PLUGIN_NAME = "footnotes";
const C_STR_PLUGIN_NAME = 'footnotes';
/**
* Public Plugin name.

View file

@ -197,20 +197,20 @@ class MCI_Footnotes_Convert {
if ( empty( $p_mixed_Value ) ) {
var_dump( $p_mixed_Value );
} else if ( is_array( $p_mixed_Value ) ) {
} elseif ( is_array( $p_mixed_Value ) ) {
printf( '<pre>' );
print_r( $p_mixed_Value );
printf( '</pre>' );
} else if ( is_object( $p_mixed_Value ) ) {
} elseif ( is_object( $p_mixed_Value ) ) {
printf( '<pre>' );
print_r( $p_mixed_Value );
printf( '</pre>' );
} else if ( is_numeric( $p_mixed_Value ) || is_int( $p_mixed_Value ) ) {
} elseif ( is_numeric( $p_mixed_Value ) || is_int( $p_mixed_Value ) ) {
var_dump( $p_mixed_Value );
} else if ( is_date( $p_mixed_Value ) ) {
} elseif ( is_date( $p_mixed_Value ) ) {
var_dump( $p_mixed_Value );
} else {

View file

@ -46,7 +46,6 @@ class MCI_Footnotes {
* @since 2.4.0
* @date 2021-01-04T1355+0100
*
*
* @link https://wordpress.org/support/topic/template-override-filter/#post-13864301
* @link https://github.com/misfist/footnotes/releases/tag/2.4.0d3 repository
* @link https://github.com/misfist/footnotes/compare/2.4.0%E2%80%A62.4.0d3 diff

View file

@ -167,7 +167,6 @@ class MCI_Footnotes_Task {
* @since 2.4.0
* @date 2021-01-04T1355+0100
*
*
* @link https://wordpress.org/support/topic/template-override-filter/#post-13864301
* @link https://github.com/misfist/footnotes/releases/tag/2.4.0d3 repository
* @link https://github.com/misfist/footnotes/compare/2.4.0%E2%80%A62.4.0d3 diff

View file

@ -101,7 +101,6 @@ class MCI_Footnotes_Template {
* Define plugin root path
*
* @since 2.4.0d3
*
*/
$this->plugin_directory = plugin_dir_path( dirname( __FILE__ ) );
@ -109,7 +108,6 @@ class MCI_Footnotes_Template {
* Modularize functions
*
* @since 2.4.0d3
*
*/
if ( $template = $this->get_template( $p_str_file_type, $p_str_file_name, $p_str_extension ) ) {
$this->process_template( $template );
@ -165,7 +163,6 @@ class MCI_Footnotes_Template {
/**
* Process template file
*
*
* @since 2.4.0d3
*
* @param string $template
@ -191,7 +188,6 @@ class MCI_Footnotes_Template {
/**
* Get the template
*
*
* @since 2.4.0d3
*
* @param string $p_str_file_type

View file

@ -49,7 +49,7 @@ define( 'C_STR_FOOTNOTES_VERSION', '2.5.6d4' );
*/
// Get all common classes and functions
require_once( dirname( __FILE__ ) . '/includes.php' );
require_once dirname( __FILE__ ) . '/includes.php';
// add Plugin Links to the "installed plugins" page
$l_str_plugin_file = 'footnotes/footnotes.php';

View file

@ -28,7 +28,7 @@ function mci_footnotes_require_php_files( $p_str_directory ) {
continue;
}
/** @noinspection PhpIncludeInspection */
require_once( $p_str_directory . $l_str_file_name );
require_once $p_str_directory . $l_str_file_name;
}
}