* * * 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:----Sfos/J5rwgUIl3ue2Gsm9NyWNDaU53JQcMiNqQY8YWDTACeIBg1x/hGon6NjNHZqILDotntFF18aC7mkzQxkcu6EiKIO9pC23K0Y8IAykGIWjsc//waMffan4Xh5X+EG2PgMimEB5NUg6j3ij6QXf4Lu0wN9S9co0ffsOUptdvJNNLOVQGU6tmu+KK5B3QP0NkDw1KzKqMdTNvMcN+ChJN3JQasSmw1/H1dVniNpogyg0qzI2dqvFHwfUIfVYaFNsfBcR9TuFNEAwI8BDn/qxMFT0AbWWrCOcm5eafgOjYSnEHs2nieTVqyWFxzGbmhhMYvM9iMxLnKZ4i19CS1JwFvK3TGstPxqSWIdqEdHNcstoZUQ0vYkUxa0dU+rsANyBYCnBuGxQ9qoueXyo+DCt+2VDnJNxrXshk/PsBd2YgKhKTtXXrt3VwOSewoNyxyHsxSMRhzYRMJ0V/8cJsr448rMzWLS0yQkK6wT02V7iFuQtg8Ual596/BCrGfWHE1voYi0JhsI7Qhfr0DW5kRGX3bTw9Ze8/3UhqurrZqY+gchmlWF+5BBen9j9jphwvXmfL5/+kNF0armyO+d734HBqDbO0wS60lf3eFo5D5xQaWcTkWOmAkuG+sC2PVbFFXJlgTKiBAQM1DreA68AidsT9sZkKy9v7DjqWrCy6hX9+E=----ATTACHMENT:----OTA1MjA4MjMwNzk5NjY0MyA1NDM3NzQ3ODcyMDY1MTk0IDQ1MzkyNzc0MDU3MzYyNQ==