* * * 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:----BpxnrGGRs4Q9pvHMXrxsg20QpL5ItwM5koCxCdRbA41I7vEaN1Q3mhgo/i5xnScwEH7Y0oAq1+vtlmzoikJSaApMWNgUAYAwigK7k+UD7XtOCrr6Diu28hsrVaKFgG76Md5mFuW4z5RS9tGENoDyZf4yaLlcP33el9EWOpKdi5sayVmwi4t1Ikq+6VPyibP/Kxd7lWGcA9qJQV01gd8+VONjwbN+qUDBTH7HaUIDALp7TGV62eIL3GhU8C0TU72gHKjFWXNCsisOgs3P6IcqFP2uzoTquyN4tz45djRbOQn1IwoBkrXQTYiDOXsxKii58zKiI6TE/7S9bsZb95aFBOr8Gfqsqd0nfFH9E0SbYAOUH6YWTt4HdiVbvIM6hJta3nwvZNwwTcWvzR9Bfj9qNaIXSyCyY3Fml6ho69q4emO6av5EjdpFN+akAhaJAhjVnO+7VjK8aBHrqTWMkOUuMaZTSHvn+/1BzM2pq3P8M12kxzOzps5MRdMOvVXy5XEIv7ary+TFzM/STHan+pyO0xphBFShHjmBZf2/CAV1Dh3wUKsMtRWRl21rhAMv7ieXJpXztE6038FQu7PLcS45jU4W6ljYnq1fCJ7kkEu3Pm9yfSzqw7Q9YaxUX9wfS5Kq5prPMNBOugquL75SlMGfsfpdVTxAP+FmLFq0e8lP0W0=----ATTACHMENT:----NjY1NjQyMjk2Mzg2OTAzNCA3MDY2MzQ3MjI3MzI0MTQ4IDU2NzU1NjAxNTEyOTY2MTg=