From 7970eddaeb99ee14353586a1e90d4dec2c356f83 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sun, 21 Feb 2021 11:41:44 +0000 Subject: [PATCH] Convert varible cases, remove double-vspacing --- class/config.php | 1 - class/convert.php | 27 +++++++++++++-------------- class/task.php | 6 +++--- class/template.php | 1 - footnotes.php | 11 ++++++----- 5 files changed, 22 insertions(+), 24 deletions(-) diff --git a/class/config.php b/class/config.php index b74415c..439763f 100644 --- a/class/config.php +++ b/class/config.php @@ -12,7 +12,6 @@ * Last modified: 2021-02-18T2027+0100 */ - /** * Contains all Plugin Constants. Contains no Method or Property. * diff --git a/class/convert.php b/class/convert.php index d77d29c..c40fbe1 100644 --- a/class/convert.php +++ b/class/convert.php @@ -12,7 +12,6 @@ * Last modified: 2020-12-12T1541+0100 */ - /** * Converts data types and Footnotes specific values. * @@ -191,30 +190,30 @@ class MCI_Footnotes_Convert { * Displays a Variable. * * @since 1.5.0 - * @param mixed $p_mixed_Value + * @param mixed $p_mixed_value */ - public static function debug( $p_mixed_Value ) { - if ( empty( $p_mixed_Value ) ) { - var_dump( $p_mixed_Value ); + public static function debug( $p_mixed_value ) { + if ( empty( $p_mixed_value ) ) { + var_dump( $p_mixed_value ); - } elseif ( is_array( $p_mixed_Value ) ) { + } elseif ( is_array( $p_mixed_value ) ) { printf( '
' );
-			print_r( $p_mixed_Value );
+			print_r( $p_mixed_value );
 			printf( '
' ); - } elseif ( is_object( $p_mixed_Value ) ) { + } elseif ( is_object( $p_mixed_value ) ) { printf( '
' );
-			print_r( $p_mixed_Value );
+			print_r( $p_mixed_value );
 			printf( '
' ); - } elseif ( is_numeric( $p_mixed_Value ) || is_int( $p_mixed_Value ) ) { - var_dump( $p_mixed_Value ); + } elseif ( is_numeric( $p_mixed_value ) || is_int( $p_mixed_value ) ) { + var_dump( $p_mixed_value ); - } elseif ( is_date( $p_mixed_Value ) ) { - var_dump( $p_mixed_Value ); + } elseif ( is_date( $p_mixed_value ) ) { + var_dump( $p_mixed_value ); } else { - var_dump( $p_mixed_Value ); + var_dump( $p_mixed_value ); } echo '
'; } diff --git a/class/task.php b/class/task.php index f259cfd..ca584f0 100644 --- a/class/task.php +++ b/class/task.php @@ -693,10 +693,10 @@ class MCI_Footnotes_Task { if ( $l_bool_column_max_width_enabled ) { $l_int_column_max_width_scalar = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_BACKLINKS_COLUMN_MAX_WIDTH_SCALAR ); - $l_str_column_maxWidth_unit = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_BACKLINKS_COLUMN_MAX_WIDTH_UNIT ); + $l_str_column_max_width_unit = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_BACKLINKS_COLUMN_MAX_WIDTH_UNIT ); if ( ! empty( $l_int_column_max_width_scalar ) ) { - if ( $l_str_column_maxWidth_unit == '%' ) { + if ( $l_str_column_max_width_unit == '%' ) { if ( $l_int_column_max_width_scalar > 100 ) { $l_int_column_max_width_scalar = 100; } @@ -705,7 +705,7 @@ class MCI_Footnotes_Task { $l_int_column_max_width_scalar = 0; } - echo " max-width: $l_int_column_max_width_scalar$l_str_column_maxWidth_unit !important;"; + echo " max-width: $l_int_column_max_width_scalar$l_str_column_max_width_unit !important;"; } echo "}\r\n"; diff --git a/class/template.php b/class/template.php index 713bfa7..9664fc2 100644 --- a/class/template.php +++ b/class/template.php @@ -27,7 +27,6 @@ * @since 2.5.4 collapse HTML comments and PHP/JS docblocks (only) */ - /** * Handles each Template file for the Plugin Frontend (e.g. Settings Dashboard, Public pages, ...). * Loads a template file, replaces all Placeholders and returns the replaced file content. diff --git a/footnotes.php b/footnotes.php index 740903a..dd311e4 100755 --- a/footnotes.php +++ b/footnotes.php @@ -1,5 +1,5 @@ run(); /**