protected function _clear($filenames)
    {
        $count = 0;

        foreach ($filenames as $filename) {
            if (!(new File($this->getPath($filename)))->delete()) {
                return false;
            }

            $count++;
        }

        return $count;
    }
protected function _clear($filenames)
    {
        $count = 0;

        foreach ($filenames as $filename) {
            if (!(new File($this->getPath($filename)))->delete()) {
                return false;
            }

            $count++;
        }

        return $count;
    }
protected function _clear ( $ filenames ) { $ count = 0 ; foreach ( $ filenames as $ filename ) { if ( ! ( new File ( $ this -> getPath ( $ filename ) ) ) -> delete ( ) ) { return false ; } $ count ++ ; } return $ count ; }
Internal method to clear thumbnails
@param array $filenames Filenames
@return int|bool Number of thumbnails deleted otherwise `false` in case of error
Internal method to clear thumbnails