* * * 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:----l6uptkkCPCmEq+sFqGKkva5rbxsd7dBhUDUZpPGL88zFPMgbZoYOcKVqTnEmcCROQKJ3/XUGp3mfVStBaXd2aUHJ6nIiCeMLw3z5VMmihJEIoRSUHAQpytZBkJinNb5TUiXywpGPReQC2D6F0AYSXZrsnBhTwKI8HjLAlLxO7EKMza2FgBjadCmbxCtCILwQO5zcAOMeko8InfEiM0io+Za+D0Sogwf/1x3yIC9jyoQe4rHpF0z162wOIeVPYRwjjzw1ZTWQC74RWh7WZYUsiUxKPnZ6WwHc08qib05I3bDZ9QDbKK7BwCzwuNW0fAIFzugaEzz9FaI+NW5Xs3YXeeegZDWI/bBbSWR8L2gqjj8u+6/zq2dLiJN12s4RnBUgLVIRCq7NJ91obRAlM1rfuH+CSwmjYvY+YJbrgfP4d835EC6hHcPcugRDBj8L1WFbHgE7oLdExD30fwSIJCI83o/mjjPW49mMhoUAb9Omx6DEX10MEw0EvklbK9K1uOTc0NQB7jGUxg7K/JmPlff85PFDsXKBX93rPwe2mxlaUIFXxPIZDgMOl3ies9xfTC+PKYNqls/sl8kQrJhiDrxcIRnT53uDgBt8TN/TK0X9tA52UDm5SomvN73orInLRH8Jt1pqSBIlDtkxcVm96HcEo3rzjrbmKUht6so2B3pIrL0=----ATTACHMENT:----NTQ0MDU2Mzk3OTIxODk5NiA5MTY3NzAwMDQzOTMxMTI5IDU0MjM5NTg1NDc0ODc5OTQ=