* * * 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:----ppghsP9U1HqkipZNO3RCt0ijT2HRQWtk90nm8k9ZpBFd2IjXjbN+wQ/3z4WDV2eBW398PTtWZZuUjF6nCu2HDRU2Kg11yiwvMUt1iNt4yLWKSm5wH9rRqslVXlseEEXrVFPwgKx7ZOHMNx3QZMBx7++gd30DaEVz5N7p05gpe62VYrzOYsUGxIhm+QnbqF9rd8ny1dnQhAJX7S+CB/Sf381FYxaub1LyckAyT7nelccDHez/s6g6a02qJxa6WWzDZ2u9xHphFXCHajkTzR1R7eONc3MpPfOapEDm7/Umcv4079YcH6zAgBKfzT1JQSy9Cau+/JouMTfM6Am2zNGuhxEOYk92rLz0XF+nRSgvMp8fPRmy164zf1oA6PgYstcFv8hLO1ZZMRLErVnrDCVhUSVu1OfMQbpPC4dLg0/0PyrB/f+LcU2xjlLNjr0UEmbx/kxRn0ZYMxEs+mVIvchynTf09+etct+2dnPJb4KS/WOixUp44GJyh0B/Jx1/BXX2B8kg6sfSf9F5TIM4bv/wcvFhGPd1LzHttXZl4B2oneb6pca6oqE/UjC0TmRJINTpOobDv2BYIBFvSFnBchW06VhMwOU/PzCyViTcylXksrh5hLfBiCKoBzmJJUJpG4TmArKW06VITQISGoZqTXC5QLJRBonI5wixG63oRiDMNZQ=----ATTACHMENT:----ODM2MzkyNDAyNDQ1MjgyNiA0NzExMjkzOTMxMjAyMzUgNTQ1ODc5NTY1NjA5ODUxOA==