private function guessAdapterExtension($path)
    {
        $path = strtolower(trim($path));
        foreach ($this->getStrategies() as $extension => $strategy) {
            if ($extension === substr($path, (strlen($extension) * -1))) {
                return $extension;
            }
        }

        return null;
    }
private function guessAdapterExtension($path)
    {
        $path = strtolower(trim($path));
        foreach ($this->getStrategies() as $extension => $strategy) {
            if ($extension === substr($path, (strlen($extension) * -1))) {
                return $extension;
            }
        }

        return null;
    }
private function guessAdapterExtension ( $ path ) { $ path = strtolower ( trim ( $ path ) ) ; foreach ( $ this -> getStrategies ( ) as $ extension => $ strategy ) { if ( $ extension === substr ( $ path , ( strlen ( $ extension ) * - 1 ) ) ) { return $ extension ; } } return null ; }
Finds an extension that has strategy registered given a file path

Returns null if no matching strategy found.

@param string $path

@return string|null
Finds an extension that has strategy registered given a file path