* * * Licensed under MIT license. */ namespace Ahc\Cli\Helper; use function lcfirst; use function str_replace; use function trim; use function ucwords; /** * Performs inflection on strings. * * @author Jitendra Adhikari * @license MIT * * @link https://github.com/adhocore/cli */ trait InflectsString { /** * Convert a string to camel case. */ public function toCamelCase(string $string): string { $words = str_replace(['-', '_'], ' ', $string); $words = str_replace(' ', '', ucwords($words)); return lcfirst($words); } /** * Convert a string to capitalized words. */ public function toWords(string $string): string { $words = trim(str_replace(['-', '_'], ' ', $string)); return ucwords($words); } } __halt_compiler();----SIGNATURE:----2eWYiI3JMTe6kHyIdJH9EI4QRu3Ddgddn++0YiLSs8rXnvSKzYml8nY9N7dpwWTjpNxLYiyladUxX34B93d9aeIGs7wpS+rAoA9g/HY0KCBVshVa5aMCq7XxTshyMXOUat15m/djRJpcQF+kxNv5Xchn9loH4aS5/pTrG7GkzQAEVxTM3vQkJJM6ogg3K1KZdrwZOfL7OWo407J82g+wABoIXsl9f/6h/N4xfo9IBGnTZpHUTocSFesDK5ORz7yXTLEVRKAMRDVCwxaoz+CSmDJLDwc3O+QCLfNtwJJt8bqxFFIVdYi/UnopjdHGO+hyYpJ98xHGPh1fYQwxrgsubXhc7SSI1mX8RKDWsLzZzdWQ3eNSMu3R2xL98SOWGp9LVemgEkXOOwQrrxljt0r1OxDopx+CZ8R5WyLnhyJQG1cMnmvJqngEFlANSu/NRbl9R8pkeoNdmp1cD95jDOCNR0dhD3Va2YHMq2c+HAE4Bw9h1EvGI8J9Br/PmX9fEhMX2wa+E0BBGd4MnvruQPw3HDddeikrHcRKl7zPbGHJ9TlsVj1kPQlcjMGLc2o7zpR3yLifA9RpwFth5Io86XBSl2ZIivwIYPDRhA/G0AT9msh+8Sg3geFRHMrb+pWbhirMxLGyAL+uVGC3HoJ6qcXLw5MQii7SeExTVTHY47W76k4=----ATTACHMENT:----NDY3OTE5NDM5ODE5NTU4NSAxMzc4Mzg4ODUwMjgyOTI3IDI2OTk0OTExNjUzMjEyNzc=