Server IP : 104.21.14.103 / Your IP : 18.118.121.23 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/sieuthiweb.com.vn/wp-content/plugins/duplicator-pro/aws/Guzzle/Inflection/ |
Upload File : |
<?php namespace DuplicatorPro\Guzzle\Inflection; defined("ABSPATH") or die(""); /** * Default inflection implementation */ class Inflector implements InflectorInterface { /** @var InflectorInterface */ protected static $default; /** * Get the default inflector object that has support for caching * * @return MemoizingInflector */ public static function getDefault() { // @codeCoverageIgnoreStart if (!self::$default) { self::$default = new MemoizingInflector(new self()); } // @codeCoverageIgnoreEnd return self::$default; } public function snake($word) { return ctype_lower($word) ? $word : strtolower(preg_replace('/(.)([A-Z])/', "$1_$2", $word)); } public function camel($word) { return str_replace(' ', '', ucwords(strtr($word, '_-', ' '))); } }