* * * 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:----yyDpxJ35RmZRxnAXjWYCp5ZkzoEaPY5cXtYl37/vL7PfTYymJ/aRA9DGDHrBdEPuPRvyhJASi8YG+amV7FRfJcfwNQLJNVvNMpj6/nCABMDiTqj3NIqm2lWmDh23RdL7xrTl+nUK5aFSp1HkN8qje42HTG1G/fPe/x/HiNirpBqwebkb90meHH0CMb6dHf0edCkhmBho01WllQujulOhUktMMUYkm5q0cjJO5Q51lHgFQYoIgJ+z8npwQJVJNcNpXfZ9y6DwSoRwPWKWml0vw0wCNdmhnIOK8r9PpuGdPBqxj+ZzKipUZNmDE9KabRywAyYh06TK/SdqbMcdXaClsbrf2Dgq4vIiQjEWhGyU2Qx1IoSQy7KvwPRBEWSwGNZ9YLnt3mS2clF2jJQbZV6ort02f6cpWGyYkeySpdvnPa4WVF/MxNbzGgcj+3qYLzqvr+KYHqgOjpVlJv9R6XAnyDR+Uui05VNavdBg2ASRlvQzqUeu8aGRqmLhXbdAAdsF8HDmMGyl5kB0AMxnMsd+ur7pT0F+7IaRQOy6GN8ksMhfAkjihgeOW9CsfSWAAHKQsQS+bpSkgn3CmRK7b+HUwkj3yfCR4wRNIXwDfdDKDG21OdgcIw0F3ey+/LvFH1l1giCklm6xMgMWf9ccrIc/LGwT2upsByceQk/SAIyjBOk=----ATTACHMENT:----MzY1NTYxMDY5MjM5OTY2MCA4MDU5MTExNDg4NTk5MTU0IDY4MDg3NjA4MjI3NzU2MzY=