| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 37 | public static function snakeToCamelCase($string, $ucFirst = true)  | 
            ||
| 38 |     { | 
            ||
| 39 |         $string = preg_replace_callback("/(?:^|_)([a-z])/", function ($matches) { | 
            ||
| 40 | return strtoupper($matches[1]);  | 
            ||
| 41 | }, $string);  | 
            ||
| 42 | |||
| 43 |         if (!$ucFirst) { | 
            ||
| 44 | $string = lcfirst($string);  | 
            ||
| 45 | }  | 
            ||
| 46 | return $string;  | 
            ||
| 47 | }  | 
            ||
| 48 | |||
| 49 | }  |