* * * 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:----QOrH9ZZaSLZKpQxvlJqh2BSkvCQYafTSnIr0V7YE7D+Et/ABOhoXoXL/p8boMmAn97SagX23847daFYSJbUYgEabZ47eOy/FUMVC31YsU4C9EffbocLPKQphP7T1mGl/qwE7pK+1kGXPae2WNFpRlLUhn6F6NHGbuoWJq7U8BLgUjc2emOSpKyaxDH4GwtNS5hp0wy/5yHPGJluOF4uK1z6lhcTZjSm7eh5DfehxshUGQ5+P0GGHH6jXDJqoqFEAvZD9osPvd65+ZHR+SPZvOcVtg6S5OZGlL39BNYILkyj6iaRM+Lx1uMlaoFw4tRNfKvBBUbTWoTTZHDc08i92G+RDiGim8VNUPwWu47JinVKZdz2KuTjPBKZf3NDCSpdgbalVh08nc227hYwAedBia9dWmTbO68U3C+/egcuXPOllU5CQtG4QkkxZKJAOsHyuYCHUVkRpLDcWPzkL3FnrmoDVFavC7UP1O/gpwi69BRPffK9TK4iS099p3458ycjKr5yIgfzT5Z6EHdAubz9Tn4QQDecDfPs/g3iEpp/yoIC63r3+Tjryc26ABhfwGqeEwWd+gOlw6PePTAKzoj8KY7zzCCeXzXY8P/VSreQvQ54hDBqn+Hnj+ljtUfBBH3risGZoAjEdxNB3qvKER2y3uyt7rMxLJXsQbxb/4z+M46k=----ATTACHMENT:----NDIwNDQ5NzMzMTgxNDY0OSA3NDIxNjE3NTQwODc1NTg5IDExNjQ4NjYzMDgzODgyMDI=