original_string: public function pluginFile()
      {
          if (!empty($this->request->query['file'])) {
              $path = $this->request->query['file'];
              $path = str_replace_once('#', '', $path);
              $file = str_replace('//', '/', ROOT . "/plugins/{$path}");
              if ((strpos($file, 'webroot') !== false || strpos($file, '.tmb') !== false) && file_exists($file)) {
                  $this->response->file($file);
  
                  return $this->response;
              }
          }
          die;
      }
code: public function pluginFile()
      {
          if (!empty($this->request->query['file'])) {
              $path = $this->request->query['file'];
              $path = str_replace_once('#', '', $path);
              $file = str_replace('//', '/', ROOT . "/plugins/{$path}");
              if ((strpos($file, 'webroot') !== false || strpos($file, '.tmb') !== false) && file_exists($file)) {
                  $this->response->file($file);
  
                  return $this->response;
              }
          }
          die;
      }
code_tokens: public function pluginFile ( ) { if ( ! empty ( $ this -> request -> query [ 'file' ] ) ) { $ path = $ this -> request -> query [ 'file' ] ; $ path = str_replace_once ( '#' , '' , $ path ) ; $ file = str_replace ( '//' , '/' , ROOT . "/plugins/{$path}" ) ; if ( ( strpos ( $ file , 'webroot' ) !== false || strpos ( $ file , '.tmb' ) !== false ) && file_exists ( $ file ) ) { $ this -> response -> file ( $ file ) ; return $ this -> response ; } } die ; }
docstring: Returns the given plugin's file within webroot directory.
  
  @return void
docstring_tokens: Returns the given plugin s file within webroot directory .