original_string: protected function readStream(&$stream, &$output) {
      $content = stream_get_contents($stream);
      if (strlen(rtrim($content))) {
        foreach (preg_split('/\r?\n/', $content) as $line) {
          $output[] = $line;
        }
      }
    }
code: protected function readStream(&$stream, &$output) {
      $content = stream_get_contents($stream);
      if (strlen(rtrim($content))) {
        foreach (preg_split('/\r?\n/', $content) as $line) {
          $output[] = $line;
        }
      }
    }
code_tokens: protected function readStream ( & $ stream , & $ output ) { $ content = stream_get_contents ( $ stream ) ; if ( strlen ( rtrim ( $ content ) ) ) { foreach ( preg_split ( '/\r?\n/' , $ content ) as $ line ) { $ output [ ] = $ line ; } } }
docstring: Read stream content to output array
  
  @param resource $stream Stream resource
  @param array $output
docstring_tokens: Read stream content to output array