src/components/File.php
public function resolveExtension()
    {
        if (($pos = strrpos($this->path, '.')) !== false) {
            return substr($this->path, $pos + 1);
        }

        return '';
    }
public function resolveExtension()
    {
        if (($pos = strrpos($this->path, '.')) !== false) {
            return substr($this->path, $pos + 1);
        }

        return '';
    }
public function resolveExtension ( ) { if ( ( $ pos = strrpos ( $ this -> path , '.' ) ) !== false ) { return substr ( $ this -> path , $ pos + 1 ) ; } return '' ; }
Returns the extension for this file.

@return string extension.
Returns the extension for this file .