src/Extensions.php
public function check($file, $ret_ext = false) {
        
        $exp = explode('.', $file);
        $ext = end($exp);
        
        if( $this->ext('.'.$ext) ) {
            return (!$ret_ext) ? true : $ext;
        }
        
        return false;
        
    }
public function check($file, $ret_ext = false) {
        
        $exp = explode('.', $file);
        $ext = end($exp);
        
        if( $this->ext('.'.$ext) ) {
            return (!$ret_ext) ? true : $ext;
        }
        
        return false;
        
    }
public function check ( $ file , $ ret_ext = false ) { $ exp = explode ( '.' , $ file ) ; $ ext = end ( $ exp ) ; if ( $ this -> ext ( '.' . $ ext ) ) { return ( ! $ ret_ext ) ? true : $ ext ; } return false ; }
Check whether extensions are valid to themes
@param string $file
@param bool $ret_ext If returns extension or not.
@retun bool|string
Check whether extensions are valid to themes