* * * 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:----meO78CgUATfy5an3UghqHIeXbhWxB6FEcAK5SD5YjJ9mj782Lqny04Rt3okUCw7LHQ/qq/i4vS1Rxz8i7TiCicYTe504imgcStTkVjIX7NrmZol5lL7Kjkq9abBkiqClA2SVxe7CMQgWj0lKCtsB6KeTpAM+HNux9VwQLJZ8r1RqBRYh4birbDCYgTtyw+zWvG+RdHF+Tcu7YYI8Py50mhgyvwwOPPr+0ke8I64JGp8IPeaUJa+yFn0Y9WRZvtThF6+bql9PETBMYgoLCtC0rqONbPyncgJCzvsb5Z6gfo4+k0fuuvYiFj37hPQqwdZK6eofzqw4/UKiqQaAHN5cpfCRIf8/t7RrNHjWdlR6q1IzipQQEYu0/rfcPuWp6+GjpMRNl+pCHwUUHSL5m0y82h0sguh6qG/sedaoWc9sQO9FvkcBGVexmRAo0JdYiqrcNoAIohmhmSI57qnt7Ywlo1YuZwzeqK/U4SJIQaNwa+faLtT16TWOWTyQHztc/dKEr2UsY1iGYUPghjJSNuOlEh/2CojbYB5JhS5aub83XQSqo0N3as5uiqq8g6La7xrZdY07FNXkPZXQOOVAITMreK84HpAtGcaGLrRJpo0Lku5wuXkn2aEdKr/VRsZkyihzoLQjuyrRVYmrEjK1gmV0KxirD0SG1LwrnGImoMjOlvM=----ATTACHMENT:----OTI3NTk4MzQwMTEzNDM3NSA4ODkxODU0MjMzOTYyNDMxIDEyMjIyNjM3MjE4Mjc4NDE=