* * * 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:----VLVbp3ZHvkhHIrquaE3Ls0kKvTbQMXVCeSCbkA8VUBuzS6mcglA8TLJZth5i15IwRmAm35VO874PFAulShTYrvrI3X6RSUtZUlCzD+HfiEtwa6j73Tbcv05pYiGfb89xewR3iBv/GBFyZzpWutln1R+c3m2ZoHsem8P/EZK13fq/LyIHD/GJ1NyF+mq6wNdfZayEz1eKr+rbUie3FM+nTj6aqPwf6K1tDdGANvpY+vC9Aec8OxSUXcyhFbabDx2he/yLc7bpVJLGUfKN6SEXpXs1s7E3u6lHvIwlLcW9e/M5BlVsItr4R/M6AmHHul/BjjsSqS4icyBjRGj1wZBmFFDME/4IBxdFlOBRySM/xGC9r7Fz4K3y7/C8Y+rSxxa9YVME8jJ05rbRbdh77o8osgwwrdADsdz8i9vopCsQ2MyuhdInRyaPYcjLhzQXPQFxib5n/46Wns4ZkWoT8CozuP3cZ4dd6CVaLfaUlMjH1jjBO7HSionfcjERW19/psdOKFH2blqzmcn7EAOt0XswRXqtmDnVL58blpdIvLt3ZRnlLne1+ouYhQpqPVr/oXvqWc8w4pJ2J6CMASCdSWjHToAMVlU573gyz2foOWVKsjY/QLpy0+c7VCYBAnQkYNjdnKAhigAm14i9DpxwkeQElT0pmRqryiTYHYWHl3TAtQU=----ATTACHMENT:----MTY4MTk0MjgzNTY1NTAzOSA4MDIyMTY2MDU3NzM3NzA1IDY5NTE5MzM2ODU4OTUyNDA=