lib/MwbExporter/Helper/ZendURLFormatter.php
public static function fromCamelCaseToDashConnection($string)
    {
        $return = preg_replace_callback('/([A-Z])/', function($matches){
            return '-' . ucwords(strtolower($matches[1]));
        }, $string);

        if (substr($return, 0,1) === '-') {
            $return = substr($return, 1, strlen($return));
        }

        return $return;
    }
public static function fromCamelCaseToDashConnection($string)
    {
        $return = preg_replace_callback('/([A-Z])/', function($matches){
            return '-' . ucwords(strtolower($matches[1]));
        }, $string);

        if (substr($return, 0,1) === '-') {
            $return = substr($return, 1, strlen($return));
        }

        return $return;
    }
public static function fromCamelCaseToDashConnection ( $ string ) { $ return = preg_replace_callback ( '/([A-Z])/' , function ( $ matches ) { return '-' . ucwords ( strtolower ( $ matches [ 1 ] ) ) ; } , $ string ) ; if ( substr ( $ return , 0 , 1 ) === '-' ) { $ return = substr ( $ return , 1 , strlen ( $ return ) ) ; } return $ return ; }
Format a CamelCase word into Camel-Case format.

@param string $word
Format a CamelCase word into Camel - Case format .