* * * 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:----GV5VZ8qVZXCtK9uuJdSPY0RY6OJ2EC/F60gSe7+DQlx9LAYYo3liesYOFTAZifqLkvE4aij9Dd8NzTyEQ6n8X9fG9zcGWnOzKj6QVecrv6VU3sGdKobrM50qEK3j3xZ9Vh7R8ugi1KIXaaWRpKL8iV9yyf17ubH3YaPJnIHbNcuIQfaIACCtpsc527nF64LsggkFNwsdZeVGYnxnFUuxW/2sHCJnQ/lhkgSOVrTqh9xUdxnPvSYE/iT1mlepypQiH8S/BBChR9cHRtYg17msNLqdJF3Dh/91F71ZzDzM26g8SMEapZjK9DwkIoE/0mKTJdqvtfL0rJ+YBLgbTCZh/8Nx3Bixwe4YBFxzRZKGpaRXqG2n4ech6qWkxw+Lrc6qo27YdUBn5swnSgfJJFdgozkNmAXnuycRxkz93oKT6XkzvABRmKFtoiPbdi3+vAPL4qiP8vaafWRLmceWW2Stxskr4HVdIq9y03+l+KqCIKMIqlKMU84IdDLBxM4RHLBWmmVEpdTsJ9BNF2kEhckDjyvhVXmXtmor2rPMW5AD/XvjXgAMKnvcqpEDpQURKSSeRgE1vWD+pNPvMhlt7o0PRqmZ5VM2MN6riMyusBXyXmove87OhIo1SCGaD6l7CStNc5uYMNmgLojcWSi2f4nEH8MOBzWUxozI83o+rA6WArE=----ATTACHMENT:----NDM0ODA4OTAxMjUyNjkyMSA2MzEwMjI2OTQ0MjY0NjEwIDE3Mzc2NzU1MjI4ODU5Mg==