Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Feb 28, 2017
1 parent 9e791e9 commit f99e5a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/9.0/inserting.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To create or update a CSV you are required to use the `League\Csv\Writer` connec
~~~php
<?php

public Writer::insertOne(mixed $record): int
public Writer::insertOne(array $record): int
public Writer::insertAll(iterable $records): int
public Writer::getFlushTreshold(void): int|null
public Writer::getNewline(void): string
Expand Down Expand Up @@ -44,7 +44,7 @@ To add new data to your CSV the `Writer` class uses the following methods
~~~php
<?php

public Writer::insertOne(mixed $record): int
public Writer::insertOne(array $record): int
~~~

This method takes a single argument `$record`, an `array` and returns the length of the written string or throw and `League\Csv\Exception\InsertionException` on error.
Expand Down
2 changes: 0 additions & 2 deletions docs/9.0/properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ Once your connection is [instantiated](/9.0/connections/) you can optionally set

public AbstractCsv::getDelimiter(void): string
public AbstractCsv::getEnclosure(void): string
public AbstractCsv::getEnclosure(void): string
public AbstractCsv::getEscape(void): string
public AbstractCsv::getInputBOM(void): string
public AbstractCsv::getOutputBOM(void): string
public AbstractCsv::hasStreamFilter(string $filtername): bool
public AbstractCsv::supportsStreamFilter(void): bool
public AbstractCsv::setDelimiter(string $delimiter): AbstractCsv
public AbstractCsv::setEnclosure(string $delimiter): AbstractCsv
public AbstractCsv::setEnclosure(string $delimiter): AbstractCsv
public AbstractCsv::setEscape(string $delimiter): AbstractCsv
public AbstractCsv::setOutputBOM(string $sequence): AbstractCsv
public AbstractCsv::addStreamFilter(string $filtername): AbstractCsv
Expand Down
6 changes: 3 additions & 3 deletions docs/9.0/reading.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ $stmt = (new Statement())
;
~~~

<p class="message-warning">If a the <code>Reader</code> object has a header an the column uses undefined header value a <code>RuntimeException</code> is triggered.</p>
<p class="message-warning">If a <code>Reader</code> object has a header and the column uses undefined header value a <code>RuntimeException</code> is triggered.</p>

### Statement::process

Expand Down Expand Up @@ -449,10 +449,10 @@ $results = $reader->select();
count($results); //return the total number of records found
~~~

`RecordSet::getColumnName` and `RecordSet::getColumnNames` returns the columns name information associated with the current object. This is usefull if the `RecordSet` object was created from:
`RecordSet::getColumnNames` returns the columns name information associated with the current object. This is usefull if the `RecordSet` object was created from:

- a `Reader` object where `Reader::getHeader` is not empty;
- a `Statement` object where `Statement::columns` was used.
- and/or a `Statement` object where `Statement::columns` was used.

#### Example: no header information was given

Expand Down

0 comments on commit f99e5a1

Please sign in to comment.