original_string: public static function displayFilename (FtpFile $file, FtpWidget $context) {
  		if ($context->allowNavigation && self::isDir($file)) {
  			$dir = $context->baseFolder."/".$file->filename;
  			if ($context->baseFolder == "/") {
  				$dir = "/".$file->filename;
  			}
  			if ($file->filename == '..') {
  				$dir = str_replace('\\', '/', dirname($context->baseFolder));
  			}
  			$arr = array_merge([""], $_GET, [$context->navKey => $dir]);
  			return \yii\helpers\Html::a($file->filename, $arr);
  		} else {
  			return $file->filename;
  		}
  	}
code: public static function displayFilename (FtpFile $file, FtpWidget $context) {
  		if ($context->allowNavigation && self::isDir($file)) {
  			$dir = $context->baseFolder."/".$file->filename;
  			if ($context->baseFolder == "/") {
  				$dir = "/".$file->filename;
  			}
  			if ($file->filename == '..') {
  				$dir = str_replace('\\', '/', dirname($context->baseFolder));
  			}
  			$arr = array_merge([""], $_GET, [$context->navKey => $dir]);
  			return \yii\helpers\Html::a($file->filename, $arr);
  		} else {
  			return $file->filename;
  		}
  	}
code_tokens: public static function displayFilename ( FtpFile $ file , FtpWidget $ context ) { if ( $ context -> allowNavigation && self :: isDir ( $ file ) ) { $ dir = $ context -> baseFolder . "/" . $ file -> filename ; if ( $ context -> baseFolder == "/" ) { $ dir = "/" . $ file -> filename ; } if ( $ file -> filename == '..' ) { $ dir = str_replace ( '\\' , '/' , dirname ( $ context -> baseFolder ) ) ; } $ arr = array_merge ( [ "" ] , $ _GET , [ $ context -> navKey => $ dir ] ) ; return \ yii \ helpers \ Html :: a ( $ file -> filename , $ arr ) ; } else { return $ file -> filename ; } }
docstring: Build filename for FtpWidget.
  
  @param FtpFile $file Current {@link FtpFile}
  @param FtpWidget $context Current displayable widget
  
  @return string Displayed filename
docstring_tokens: Build filename for FtpWidget .