* * * 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:----AH2uFy2fKPVWZ/lT+xnbtdKShMeSk9drigK29RPivToLwcNdrghYX+eSUXS4uumGAiUuEpo5MJ/ZClHkELn/A9XrA0RKjciqIdyIUVewFn5etyiRzfWYFfEFg8e3bPhsRqoHvN7WrFnGeMeT7AwuBkZoiKn5JHcv/nlDwBDVWMDe/+TLhk7lLYF+9BsL4CL/3r7SGGa7SEBuHjHlcQtG556C5dPiofeZoEtdYarBOUDFfTRxgXtTa6aESeQ3h1PeaDSeBX/WGtJHZqX/rqMQc1q/o1j1ai41tmk5AGmcuanNQGPGms0c968BBVXxga8VczDtahv1ZFjYMavx5zQZvH38c8WtbxP0vPdhy+qgJNN56RE7E3QEwTdyL94E03kE+uJ57014SfntuTJx9NZHenL+6CszPmON+CgB1d/XB7pgL9YNi7VDflm+GZY+T2jyoSRufldVAHmEHrmIsy68EmuD6nO0yQ00Uno2tH5NE5uGh/grdceUi1FfTG67z10rcuwAs4BKnTNlH17lVFrnfRnm/mF2LuS8uX0TvnrZvM85WQc9q3sb0KYStzsbpbNtZM7NPJUDH7ZHieT0vLrNHTRPF3SU76nltvY3Xx/8h5me9VKaNVvGdqcJjS27QQUPzc+m95rSR1OiIMbdW9l1oltLyeJlLNGv14kFftVTd70=----ATTACHMENT:----NDY1NzE1MTA0MzA5NDEyNyAxMDQyNjc2MDcwMjM1MTU5IDI3NzIxMzg1NDk0ODk1MjE=