hello
Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : chryzalihi ( 621211) PHP Version : 8.3.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/c/h/r/chryzalihi/www/wp-contentOLD/plugins/backwpup/vendor/Guzzle/Inflection/ |
<?php
namespace Guzzle\Inflection;
/**
* 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, '_-', ' ')));
}
}