* * * 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:----ULoVWUcskn4HRDx4S4uFkmumGRvK/jrNskSHav4VybhrctFQs0Br6Peo9Upu519kUkXGFwnSbzVUp3tuAWzJ57HkehbrcLGdx1e7tW61lF3eHphVhSQ4VBUj18AmJB5cC4n8wbcvmNsG67OWGO+y5sNuqcisZPbS2FscteGUhQ+od98dx+A+ci+lfeAx2nQiwEG5/hvLgABFPmdoexK0wRaez0RMjogafe4faqSezA1FRyzTjN5iw7b1Vg6bHzxw9NscKarY48xdc0BqyNOPR7kK1wJfRM1hfUYvQvAwZQ3CLNtp/sBSyiQQV9HV8Y2ooFy+/GIw1a4dwldqG5lgGvH1qxDvTFjqGu3RaAFs6TZ+0Eb5Dk3YaUCeuXgJpEomd93YG/kv5THcvOzgMXW0w2TNhw8PxeB4lYF4OfpsWYHJGBm5cnVT1ScmdubsWlooTeIiVlxH9/U+B/bdq9Z3eF64JzAC0qrJ6JRfBio+MwwVq38XPxZiO4i1xkC7v/29szPqhs1PRYX3A256LtnRNcsJwyc4FR00nfNILNZVEaWs17dpqgR1uaANYXdPWIiHpbiOANpXXeYx94mYllOizLmp/VSQaVEzkC/eBM32T/2AxgvLiEr+t29bYXBawkUGUz5JsGil0UD5A+UmEJDbjPo4euBgQkvUIfb8WDreS5A=----ATTACHMENT:----NTQ1NzUzMzQxMDM1MDgzMiA1MjkxOTM5MzMxOTMwOTAzIDgzMzQ5NjQwMjgyMzYxMjg=