* * * 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:----eW/tTW7yqOeOXmX5fsTlCnl6PtWxozbFg/o7ckd7mP6NhWl+N6aJyUdMudg2PqP2PD1aqZgOT+kxobnDqb0dzk7m4o8sC/5djRbzGxFlATrl5weOTma98AzPvJOTdEr91hxEXiRv4xdh6pgaDuUqcmdWPKK6QJq/Xqg+DgNyooEw5bZZ9Jubw2ll6cbnDiEBqqBVPP5MFpXN8l44TxfVxgg3HaQ5Pxj7zpZwgC8NNoLrLjW6Kbjr71aVFpV0AfyneeUzULvHgcxOlyDG5hZC+THKzRuf9sTRPQD2lfMfuIv+Den4IxdUZyrAGLULcWHa+Q6qeg+1cx84jVXgoo9nfqpdog/Z1KdFgxbHbNDWHXJP2hA4yavjvntO0nvTxwFH1teXfP3YCqfnQlPuq4qpHRe0rgk7SClvlsv5VWa4xCYcQbzDHD00Oy9yXb3nuAgjT4qaSCkbbTfdq/fibJxOx+Zym3X5lm7qch+lzwuSmHDUtORrix+MknBkbDaS5DaxRH2ifg4wlGRFO5rEkO4sJSs6ABeCApebW8elaoshG3W53XqhDZGhWIwW6i3OjDN+8fUQyL7zQ7fZtUm8eFW/cKRMQsLc87y4b26NvtIZFc/GTQ62DEHvaaikGzHszeAkWJUGyyZHnWsXSdFTn+4vLHAFkkSdGx1xnMbrwX4kFrA=----ATTACHMENT:----OTQ2ODQ5NjQxODQ4ODYxOCA5MDI2OTE3OTMxMTQwNDc2IDM5NTQ4NTg4NDA5ODY2NDk=