src/FelixOnline/Base/Theme.php
private function toCamelCase($str, $ucfirst = true)
    {
        $parts = explode('-', $str);
        $parts = $parts ? array_map('ucfirst', $parts) : array($str);
        $parts[0] = $ucfirst ? ucfirst($parts[0]) : lcfirst($parts[0]);
        return implode('', $parts);
    }
private function toCamelCase($str, $ucfirst = true)
    {
        $parts = explode('-', $str);
        $parts = $parts ? array_map('ucfirst', $parts) : array($str);
        $parts[0] = $ucfirst ? ucfirst($parts[0]) : lcfirst($parts[0]);
        return implode('', $parts);
    }
/*
Translates a string with dashes into camel case (e.g. first-name -> FirstName)
$str - String in dash format
$ucfirst - If true, capitalise the first char in $str
Returns string - $str translated into camel caps