original_string: protected function gettmb($path, $stat) {
  		if ($this->tmbURL && $this->tmbPath) {
  			// file itself thumnbnail
  			if (strpos($path, $this->tmbPath) === 0) {
  				return basename($path);
  			}
  
  			$name = $this->tmbname($stat);
  			if (file_exists($this->tmbPath.DIRECTORY_SEPARATOR.$name)) {
  				return $name;
  			}
  		}
  		return false;
  	}
code: protected function gettmb($path, $stat) {
  		if ($this->tmbURL && $this->tmbPath) {
  			// file itself thumnbnail
  			if (strpos($path, $this->tmbPath) === 0) {
  				return basename($path);
  			}
  
  			$name = $this->tmbname($stat);
  			if (file_exists($this->tmbPath.DIRECTORY_SEPARATOR.$name)) {
  				return $name;
  			}
  		}
  		return false;
  	}
code_tokens: protected function gettmb ( $ path , $ stat ) { if ( $ this -> tmbURL && $ this -> tmbPath ) { // file itself thumnbnail if ( strpos ( $ path , $ this -> tmbPath ) === 0 ) { return basename ( $ path ) ; } $ name = $ this -> tmbname ( $ stat ) ; if ( file_exists ( $ this -> tmbPath . DIRECTORY_SEPARATOR . $ name ) ) { return $ name ; } } return false ; }
docstring: Return thumnbnail name if exists
  
  @param  string  $path file path
  @param  array   $stat file stat
  @return string|false
  @author Dmitry (dio) Levashov
docstring_tokens: Return thumnbnail name if exists