protected function formatIndex($name)
    {
        if (\is_string($name)) {
            $exp = explode('.', $name);

            if (0 < \count($exp)) {
                $name = $exp[\count($exp) - 1];
            }
        }

        return $name;
    }
protected function formatIndex($name)
    {
        if (\is_string($name)) {
            $exp = explode('.', $name);

            if (0 < \count($exp)) {
                $name = $exp[\count($exp) - 1];
            }
        }

        return $name;
    }
protected function formatIndex ( $ name ) { if ( \ is_string ( $ name ) ) { $ exp = explode ( '.' , $ name ) ; if ( 0 < \ count ( $ exp ) ) { $ name = $ exp [ \ count ( $ exp ) - 1 ] ; } } return $ name ; }
Format the index without prefix with dot.

@param string $name The index

@return string
Format the index without prefix with dot .