original_string: private static function finalize_code_output($i, $output)
      {
          if (isset($output[$i]) && trim($output[$i])) {
              $output[$i] .= "\n```\n";
          } else {
              $output[$i] = "```";
          }
  
          return $output;
      }
code: private static function finalize_code_output($i, $output)
      {
          if (isset($output[$i]) && trim($output[$i])) {
              $output[$i] .= "\n```\n";
          } else {
              $output[$i] = "```";
          }
  
          return $output;
      }
code_tokens: private static function finalize_code_output ( $ i , $ output ) { if ( isset ( $ output [ $ i ] ) && trim ( $ output [ $ i ] ) ) { $ output [ $ i ] .= "\n```\n" ; } else { $ output [ $ i ] = "```" ; } return $ output ; }
docstring: Adds the closing code backticks. Removes trailing whitespace.
  
  @param int
  @param array
  
  @return array
docstring_tokens: Adds the closing code backticks . Removes trailing whitespace .