private function removeFileExtensionFromPath($path)
    {
        if (strrpos($path, '.') !== false) {
            $path = substr($path, 0, strrpos($path, '.'));
        }

        return $path;
    }
private function removeFileExtensionFromPath($path)
    {
        if (strrpos($path, '.') !== false) {
            $path = substr($path, 0, strrpos($path, '.'));
        }

        return $path;
    }
private function removeFileExtensionFromPath ( $ path ) { if ( strrpos ( $ path , '.' ) !== false ) { $ path = substr ( $ path , 0 , strrpos ( $ path , '.' ) ) ; } return $ path ; }
Removes the file extension from the provided path.

@param string $path

@return string
Removes the file extension from the provided path .