original_string: public static function prepare($data, $forceWindows = false)
      {
          $lineBreak = "\n";
          if (DIRECTORY_SEPARATOR === '\\' || $forceWindows === true) {
              $lineBreak = "\r\n";
          }
  
          return strtr($data, ["\r\n" => $lineBreak, "\n" => $lineBreak, "\r" => $lineBreak]);
      }
code: public static function prepare($data, $forceWindows = false)
      {
          $lineBreak = "\n";
          if (DIRECTORY_SEPARATOR === '\\' || $forceWindows === true) {
              $lineBreak = "\r\n";
          }
  
          return strtr($data, ["\r\n" => $lineBreak, "\n" => $lineBreak, "\r" => $lineBreak]);
      }
code_tokens: public static function prepare ( $ data , $ forceWindows = false ) { $ lineBreak = "\n" ; if ( DIRECTORY_SEPARATOR === '\\' || $ forceWindows === true ) { $ lineBreak = "\r\n" ; } return strtr ( $ data , [ "\r\n" => $ lineBreak , "\n" => $ lineBreak , "\r" => $ lineBreak ] ) ; }
docstring: Prepares an ASCII string for writing. Converts line endings to the
  correct terminator for the current platform. If Windows, "\r\n" will be used,
  all other platforms will use "\n"
  
  @param string $data Data to prepare for writing.
  @param bool $forceWindows If true forces Windows new line string.
  @return string The with converted line endings.
docstring_tokens: Prepares an ASCII string for writing . Converts line endings to the correct terminator for the current platform . If Windows \ r \ n will be used all other platforms will use \ n