original_string: public static function deleteThumbnails($imagePath)
      {
          $imagePath = normalizePath("{$imagePath}/");
          $fileName = basename($imagePath);
          $tmbPath = normalizePath(dirname($imagePath) . '/.tmb/');
          $folder = new Folder($tmbPath);
          $pattern = preg_quote(static::removeExt($fileName));
  
          foreach ($folder->find(".*{$pattern}.*") as $tn) {
              $tn = new File($tmbPath . $tn);
              $tn->delete();
          }
      }
code: public static function deleteThumbnails($imagePath)
      {
          $imagePath = normalizePath("{$imagePath}/");
          $fileName = basename($imagePath);
          $tmbPath = normalizePath(dirname($imagePath) . '/.tmb/');
          $folder = new Folder($tmbPath);
          $pattern = preg_quote(static::removeExt($fileName));
  
          foreach ($folder->find(".*{$pattern}.*") as $tn) {
              $tn = new File($tmbPath . $tn);
              $tn->delete();
          }
      }
code_tokens: public static function deleteThumbnails ( $ imagePath ) { $ imagePath = normalizePath ( "{$imagePath}/" ) ; $ fileName = basename ( $ imagePath ) ; $ tmbPath = normalizePath ( dirname ( $ imagePath ) . '/.tmb/' ) ; $ folder = new Folder ( $ tmbPath ) ; $ pattern = preg_quote ( static :: removeExt ( $ fileName ) ) ; foreach ( $ folder -> find ( ".*{$pattern}.*" ) as $ tn ) { $ tn = new File ( $ tmbPath . $ tn ) ; $ tn -> delete ( ) ; } }
docstring: Delete image's thumbnails if exists.
  
  @param string $imagePath Full path to original image file
  @return void
docstring_tokens: Delete image s thumbnails if exists .