protected function isAllowFile(SplFileInfo $file)
    {
        return in_array(strtolower(pathinfo($file->getFilename(), PATHINFO_EXTENSION)), $this->allow_ext);
    }
protected function isAllowFile(SplFileInfo $file)
    {
        return in_array(strtolower(pathinfo($file->getFilename(), PATHINFO_EXTENSION)), $this->allow_ext);
    }
protected function isAllowFile ( SplFileInfo $ file ) { return in_array ( strtolower ( pathinfo ( $ file -> getFilename ( ) , PATHINFO_EXTENSION ) ) , $ this -> allow_ext ) ; }
Is allow file.

@param SplFileInfo $file

@return bool
Is allow file .