* * * 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:----XFFOjIlddU98sbLTYLlEDyM6TVFlZsBXBxlnHKNQM5EAWj75tGvBPCOcXQz3+5/fOA0kpdyR6XnroswCGf0LZ7uKx2jJCfSbS2I17Jc5vhL46qsNG6rSYTUA1asCI0puA7WRDywUzlzbXi46uZD1OPN3J0pJRGyX54t9zdAAiYPMlWigH3Ta9HfI4PABKvyfQrOtzP+bg1M/lSx+RsQVxPHXZlVvYcsHf9irvEDjSEd1MuBMXeSjwvNWlfjkagFQN/uNigMui2txNFNpWTHv3XjbygBY/Cz1mlEr/iCR6LIPLr5fe9n1BgNpu8ZetedyS8B8MBtE/QEL81gIexhLgJv2QFrkeQvNUXEI34QezmDl6UOwM3PsLz8kvSumS/e8ltDC6BoOk8TiIfYftVcFfMKNeS7ALFstOsTf7YDqZgeAkGTtESZUaaPPwwFOlbQhQCV9OGuVNQ3OtdYcf2G3DDw5GVIbnuTVKzErLUZNk0jhaR8xMQMLuvTaQcxnfwgzqt2ZPHSZwg8jajgYs4YxWx+cNGw3vO9ivjDpvOOs7Mwox3jmmVnZiVZW9UTH7hRTs6PS0kTxlWrvjjjkPX12kE8P5tyMHTql2QDjfluXh5C7ovrd2VFrPRt4uZ2N5naTVbcpvdg72P8ab3AKdluAWmHoSxPTuzfEnRhDjrvzoPM=----ATTACHMENT:----NDA0NjgwMTg3NjQ3ODU0OSA5MDkwNzQwMTAxNzQ3NjcyIDE3OTg1MDQ0MTY5Njc5ODk=