* * * 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:----s+1HdlwbMuBykgkbKhtp98ihgimZhbzUl1Xr1TRtz+GAghWEuzvwBQAIKBfcnoDwx62Y8/2vI3dFWitZ+41hM7DhGU+sYiJsPVQ/KMV42CcDNDRkTys1/oAOn7FjzCPP+GKcrN/XjF26K3ocvl7i7oqGzSyBgiZr7XibVWJnvxj0cV1yrUEr6LpwaZENYfGrOL4bQN92jdoLWp5ULzva3EEy4a2Lub2XHq13quaBRDOjLM9l6ZxB6bokRd9RFxtOEWjQcAthGDQI4GEd+0zwMpopoMwp+qbWdOYKIPJwgLtEi2pd9btMSPjx3C7K0Epf06+RAxpuk6HgZj9X4Ospxpnc62lOcsYEBji4da+jhP4MF1Gn8rSAOVlbko0oE71JpdKmLZx9BTq+KdIcoPAN4wWpRL3lRLSOJ3YuHaKhGJr/juF02yycoXO/KcIUP62xd8+lpJbpYu2SspGtjOkCgnk8KY896ERGz+ZyqYGSRWtgtGhWtk+/BGQAAdu9ya8u7QETXV3vxmEfYJiEWoX0dd/ytbLyJ0uwVk7R9PSwB8S5i014leEN7npcH1Hq1s9aZaaKlpfbinl7ny9TjSvypEp+seRmcxWLO/pbvqcP2JHYqrsW5+PWMxx080xU/Bp7Rb0AvY0a6LfupmD2LZJVUID4sFFENkkxlYAHKf2bQho=----ATTACHMENT:----NjUyMDMwMzk3NDA3MzMwNCA4MDc3NDUyMTc2ODYwODU1IDk3MDY2NDc5NTk2MDM2NTU=