original_string: public static function file($path, $type = null)
      {
          $response = new self(
              Status::OK,
              new PhpStream($path, 'rb')
          );
          if (isset($type)) {
              $response->setHeader('Content-Type', $type);
          }
          return $response;
      }
code: public static function file($path, $type = null)
      {
          $response = new self(
              Status::OK,
              new PhpStream($path, 'rb')
          );
          if (isset($type)) {
              $response->setHeader('Content-Type', $type);
          }
          return $response;
      }
code_tokens: public static function file ( $ path , $ type = null ) { $ response = new self ( Status :: OK , new PhpStream ( $ path , 'rb' ) ) ; if ( isset ( $ type ) ) { $ response -> setHeader ( 'Content-Type' , $ type ) ; } return $ response ; }
docstring: Create a file response.
  
  @param string $path Path to file.
  @param string|null $type Optional MIME type.
  @return self The response.
docstring_tokens: Create a file response .