* * * 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:----Hpdwb5GyUEg3pheNBbkIvE0f+82Vb/fTKsViVsbcE4YviA2CvwRO5szBAd+EQOEco9fpMYcL8abn+ah1VncWmVZsNxOLSvKCTUDqTZBeElGcukcHQmDfWBLCfufdgOfP0ETrB4nkptiTJHudiixt2XDtBssVFyru29QL6i1dHcLWVkhhiVMPQjw15Xm+jnEpLYxSx0P+pqCFcv3QeHejqJ1BIOJ1/aB5Uy69lVoxVVEQiiTh2UVD5WUoBQkGubjgfjAw2fHQk8MuW/hnccjXjgGb3Z43Cvj4Wz4H6tUIziLDz7QyfzlRKQD3A+Ms6nhKa/NVfBMZLLY++r3ktMXanA0bGp65JBIXK/H//y7p8mXMQMk8IofzZYZroziqaowAblixInD9XAX0eSKMc/dJh0X1DDjiYmjDXCNx+HHvHZflNAwl6W4Br9QahZjzxcONn78o9OVRsIOYvSpvvETYRWFnKy9laRy9Os6fQpQ0wJDrSsb+xi2hqRNWbq38KXwl8Y2H6SRjKlLfjYdLiTDON2/klpKt0i5N0Lb7l5gf3r6BydAtDy7GdFhdqYJauhF44mgf/UqOJVsFC+g+dCznI7GSjkxBM+gTujNlRYClA6kfr+5eIEjCydNWF0j0ivlCkJMg4ERDuFvAVfAYtOzkl61f7T0rZiW/ogSdQbTFvjs=----ATTACHMENT:----ODEyNzgxOTY5MTcyMzAyNCAyNDE1MjU5MTUwNDU2MTA1IDU1MzA1NjgyODU2Mzk2MQ==