-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
85 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,6 @@ | |
* @package League.csv | ||
* @since 4.0.0 | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* | ||
*/ | ||
abstract class AbstractCsv implements ByteSequence | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ | |
* @package League.csv | ||
* @since 9.0.0 | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* | ||
*/ | ||
interface ByteSequence | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ | |
* @package League.csv | ||
* @since 9.0.0 | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* | ||
*/ | ||
class CannotInsertRecord extends Exception | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,11 @@ | |
namespace League\Csv; | ||
|
||
/** | ||
* A class to manage column consistency on data insertion into a CSV | ||
* A class to validate column consistency when inserting records into a CSV document | ||
* | ||
* @package League.csv | ||
* @since 7.0.0 | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* | ||
*/ | ||
class ColumnConsistency | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,11 @@ | |
namespace League\Csv; | ||
|
||
/** | ||
* League Csv Base Exception | ||
* League Csv Base Exception | ||
* | ||
* @package League.csv | ||
* @since 9.0.0 | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* | ||
*/ | ||
class Exception extends \Exception | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,6 @@ | |
* @since 3.3.0 | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @internal used internally to modify CSV content | ||
* | ||
*/ | ||
class MapIterator extends IteratorIterator | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ | |
/** | ||
* A stream filter to conform the CSV field to RFC4180 | ||
* | ||
* @see https://tools.ietf.org/html/rfc4180#section-2 | ||
* | ||
* @package League.csv | ||
* @since 9.0.0 | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,6 @@ | |
* @package League.csv | ||
* @since 9.0.0 | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* | ||
*/ | ||
class ResultSet implements Countable, IteratorAggregate, JsonSerializable | ||
{ | ||
|
@@ -40,7 +39,7 @@ class ResultSet implements Countable, IteratorAggregate, JsonSerializable | |
protected $records; | ||
|
||
/** | ||
* The CSV records collection column names | ||
* The CSV records collection header | ||
* | ||
* @var array | ||
*/ | ||
|
@@ -67,7 +66,7 @@ public function __destruct() | |
} | ||
|
||
/** | ||
* Returns the column names associated with the ResultSet | ||
* Returns the header associated with the result set | ||
* | ||
* @return string[] | ||
*/ | ||
|
@@ -111,7 +110,7 @@ public function jsonSerialize(): array | |
} | ||
|
||
/** | ||
* Returns a the nth record from the resultset | ||
* Returns the nth record from the result set | ||
* | ||
* By default if no index is provided the first record of the resultet is returned | ||
* | ||
|
@@ -134,9 +133,9 @@ public function fetchOne(int $nth_record = 0): array | |
} | ||
|
||
/** | ||
* Returns the next value from a single CSV record field | ||
* Returns a single column from the next record of the result set | ||
* | ||
* By default if no column index is provided the first column of the CSV is selected | ||
* By default if no value is supplied the first column is fetch | ||
* | ||
* @param string|int $index CSV column index | ||
* | ||
|
@@ -160,7 +159,7 @@ public function fetchColumn($index = 0): Generator | |
} | ||
|
||
/** | ||
* Filter a column name against the CSV header if any | ||
* Filter a column name against the header if any | ||
* | ||
* @param string|int $field the field name or the field index | ||
* @param string $error_message the associated error message | ||
|
@@ -222,12 +221,12 @@ protected function getColumnIndexByKey(int $index, string $error_message) | |
} | ||
|
||
/** | ||
* Fetches the next key-value pairs from a result set (first | ||
* Returns the next key-value pairs from a result set (first | ||
* column is the key, second column is the value). | ||
* | ||
* By default if no column index is provided: | ||
* - the first CSV column is used to provide the keys | ||
* - the second CSV column is used to provide the value | ||
* - the first column is used to provide the keys | ||
* - the second column is used to provide the value | ||
* | ||
* @param string|int $offset_index The column index to serve as offset | ||
* @param string|int $value_index The column index to serve as value | ||
|
Oops, something went wrong.