Completed
Push — master ( 243ce4...6a66a3 )
by Greg
01:47
created
src/Formatters/CsvFormatter.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
         }
90 90
     }
91 91
 
92
-  /**
93
-   * Writes a single a single line of formatted CSV data to the output stream.
94
-   *
95
-   * @param OutputInterface $output the output stream to write to.
96
-   * @param array $data an array of field data to convert to a CSV string.
97
-   * @param FormatterOptions $options the specified options for this formatter.
98
-   */
92
+    /**
93
+     * Writes a single a single line of formatted CSV data to the output stream.
94
+     *
95
+     * @param OutputInterface $output the output stream to write to.
96
+     * @param array $data an array of field data to convert to a CSV string.
97
+     * @param FormatterOptions $options the specified options for this formatter.
98
+     */
99 99
     protected function writeOneLine(OutputInterface $output, $data, $options)
100 100
     {
101 101
         $defaults = $this->getDefaultFormatterOptions();
@@ -105,16 +105,16 @@  discard block
 block discarded – undo
105 105
         $output->write($this->csvEscape($data, $delimiter, $enclosure, $escapeChar));
106 106
     }
107 107
 
108
-  /**
109
-   * Generates a CSV-escaped string from an array of field data.
110
-   *
111
-   * @param array $data an array of field data to format as a CSV.
112
-   * @param string $delimiter the delimiter to use between fields.
113
-   * @param string $enclosure character to use when enclosing complex fields.
114
-   * @param string $escapeChar character to use when escaping special characters.
115
-   *
116
-   * @return string|bool the formatted CSV string, or FALSE if the formatting failed.
117
-   */
108
+    /**
109
+     * Generates a CSV-escaped string from an array of field data.
110
+     *
111
+     * @param array $data an array of field data to format as a CSV.
112
+     * @param string $delimiter the delimiter to use between fields.
113
+     * @param string $enclosure character to use when enclosing complex fields.
114
+     * @param string $escapeChar character to use when escaping special characters.
115
+     *
116
+     * @return string|bool the formatted CSV string, or FALSE if the formatting failed.
117
+     */
118 118
     protected function csvEscape($data, $delimiter = ',', $enclosure = '"', $escapeChar = "\\")
119 119
     {
120 120
         $buffer = fopen('php://temp', 'r+');
Please login to merge, or discard this patch.