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