Minor: correct return type tag

skala
Laurent Opprecht 13 years ago
parent 90591c0ad5
commit d3f9afa862
  1. 5
      main/inc/lib/system/io/csv_writer.class.php

@ -19,7 +19,7 @@ class CsvWriter
/** /**
* *
* @param string|object $stream * @param string|object $stream
* @return FileWriter * @return CsvWriter
*/ */
static function create($stream, $delimiter = ';', $enclosure = '"') static function create($stream, $delimiter = ';', $enclosure = '"')
{ {
@ -61,16 +61,19 @@ class CsvWriter
function write($items) function write($items)
{ {
$items = is_array($items) ? $items : func_get_args();
$this->put($items); $this->put($items);
} }
function writeln($items) function writeln($items)
{ {
$items = is_array($items) ? $items : func_get_args();
$this->put($items); $this->put($items);
} }
function put($items) function put($items)
{ {
$items = is_array($items) ? $items : func_get_args();
$enclosure = $this->enclosure; $enclosure = $this->enclosure;
$fields = array(); $fields = array();
foreach ($items as $item) { foreach ($items as $item) {

Loading…
Cancel
Save