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');
    }