protected function rename($item, $path)
    {
        $name = str_replace($path, '', (string) $item);

        $name = str_replace(array('\\', '/'), '.', $name);

        $regex = preg_replace('/^./i', '', $name);

        return basename(strtolower($regex), '.php');
    }
protected function rename($item, $path)
    {
        $name = str_replace($path, '', (string) $item);

        $name = str_replace(array('\\', '/'), '.', $name);

        $regex = preg_replace('/^./i', '', $name);

        return basename(strtolower($regex), '.php');
    }
protected function rename ( $ item , $ path ) { $ name = str_replace ( $ path , '' , ( string ) $ item ) ; $ name = str_replace ( array ( '\\' , '/' ) , '.' , $ name ) ; $ regex = preg_replace ( '/^./i' , '' , $ name ) ; return basename ( strtolower ( $ regex ) , '.php' ) ; }
Renames the item into a dot notation one.

@param  string $item
@param  string $path
@return string
Renames the item into a dot notation one .