original_string: public function export()
      {
          $messages = implode("\n", array_map([$this, 'formatMessage'], $this->messages))."\n";
          $stdout = fopen('php://stdout', 'w');
          if ($stdout === false) {
              throw new InvalidConfigException('Unable to open stdout stream');
          }
          fwrite($stdout, $messages);
          fclose($stdout);
      }
code: public function export()
      {
          $messages = implode("\n", array_map([$this, 'formatMessage'], $this->messages))."\n";
          $stdout = fopen('php://stdout', 'w');
          if ($stdout === false) {
              throw new InvalidConfigException('Unable to open stdout stream');
          }
          fwrite($stdout, $messages);
          fclose($stdout);
      }
code_tokens: public function export ( ) { $ messages = implode ( "\n" , array_map ( [ $ this , 'formatMessage' ] , $ this -> messages ) ) . "\n" ; $ stdout = fopen ( 'php://stdout' , 'w' ) ; if ( $ stdout === false ) { throw new InvalidConfigException ( 'Unable to open stdout stream' ) ; } fwrite ( $ stdout , $ messages ) ; fclose ( $ stdout ) ; }
docstring: Write yii logs to stdout
  
  @access public
  @return void
docstring_tokens: Write yii logs to stdout