Revert "refactor: remove Hungarian notation and MCI
prefixes"
This reverts commit 1284544556
.
This commit is contained in:
parent
c0672461b0
commit
2f809f4fe9
15 changed files with 1710 additions and 1710 deletions
16
includes.php
16
includes.php
|
@ -12,24 +12,24 @@
|
|||
*
|
||||
* @author Stefan Herndler
|
||||
* @since 1.5.0
|
||||
* @param string $directory Absolute Directory path to lookup for `*.php` files.
|
||||
* @param string $p_str_directory Absolute Directory path to lookup for `*.php` files.
|
||||
*/
|
||||
function mci_footnotes_require_php_files( $directory ) {
|
||||
function mci_footnotes_require_php_files( $p_str_directory ) {
|
||||
// Append slash at the end of the Directory if not exist.
|
||||
if ( '/' !== substr( $directory, -1 ) ) {
|
||||
$directory .= '/';
|
||||
if ( '/' !== substr( $p_str_directory, -1 ) ) {
|
||||
$p_str_directory .= '/';
|
||||
}
|
||||
// Get all PHP files inside Directory.
|
||||
$files = scandir( $directory );
|
||||
$l_arr_files = scandir( $p_str_directory );
|
||||
// Iterate through each class.
|
||||
foreach ( $files as $file_name ) {
|
||||
foreach ( $l_arr_files as $l_str_file_name ) {
|
||||
// Skip all non-PHP files.
|
||||
if ( '.php' !== strtolower( substr( $file_name, -4 ) ) ) {
|
||||
if ( '.php' !== strtolower( substr( $l_str_file_name, -4 ) ) ) {
|
||||
continue;
|
||||
}
|
||||
// phpcs:disable Generic.Commenting.DocComment.MissingShort
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
require_once $directory . $file_name;
|
||||
require_once $p_str_directory . $l_str_file_name;
|
||||
// phpcs:enable
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue