Skip to content

Commit

Permalink
bump version 6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Nov 12, 2014
1 parent 3c5ef23 commit 5392301
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 88 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Changelog
All Notable changes to `League\Csv` will be documented in this file

## NEXT - YYYY-MM-DD
## 6.0.1 - 2014-11-12

### Added
- Nothing
Expand All @@ -10,15 +10,15 @@ All Notable changes to `League\Csv` will be documented in this file
- Nothing

### Fixed
- Nothing
- Bug Fixed `detectDelimiterList`

### Remove
- Nothing

### Security
- Bug Fixed `detectDelimiterList`
- Nothing

## 6.0 - 2014-08-28
## 6.0.0 - 2014-08-28

### Added
- Stream Filter API in `League\Csv\AbstractCsv`
Expand Down
20 changes: 10 additions & 10 deletions src/AbstractCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/csv/
* @version 6.0.0
* @version 6.0.1
* @package League.csv
*
* For the full copyright and license information, please view the LICENSE
Expand Down Expand Up @@ -67,7 +67,7 @@ abstract class AbstractCsv implements JsonSerializable, IteratorAggregate
protected $encodingFrom = 'UTF-8';

/**
* The constructor
* Create a new instance
*
* The path must be an SplFileInfo object
* an object that implements the `__toString` method
Expand Down Expand Up @@ -139,9 +139,9 @@ public function __destruct()
* @param object|string $path file path
* @param string $open_mode the file open mode flag
*
* @return static
*
* @throws \InvalidArgumentException If $path is a \SplTempFileObject object
*
* @return static
*/
public static function createFromPath($path, $open_mode = 'r+')
{
Expand Down Expand Up @@ -189,9 +189,9 @@ public static function createFromFileObject(SplFileObject $obj)
*
* @param string|object $str the string
*
* @return static
*
* @throws \InvalidArgumentException If the data provided is invalid
*
* @return static
*/
public static function createFromString($str)
{
Expand Down Expand Up @@ -230,7 +230,7 @@ protected function newInstance($class_name, $open_mode)
*
* @param string $open_mode the file open mode flag
*
* @return \League\Csv\Writer object
* @return \League\Csv\Writer
*/
public function newWriter($open_mode = 'r+')
{
Expand All @@ -242,7 +242,7 @@ public function newWriter($open_mode = 'r+')
*
* @param string $open_mode the file open mode flag
*
* @return \League\Csv\Reader object
* @return \League\Csv\Reader
*/
public function newReader($open_mode = 'r+')
{
Expand Down Expand Up @@ -332,9 +332,9 @@ public function output($filename = null)
/**
* Validate a variable to be stringable
*
* @param mixed $str
* @param string $str
*
* @return boolean
* @return bool
*/
public static function isValidString($str)
{
Expand Down
36 changes: 18 additions & 18 deletions src/Config/Controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/csv/
* @version 6.0.0
* @version 6.0.1
* @package League.csv
*
* For the full copyright and license information, please view the LICENSE
Expand Down Expand Up @@ -50,7 +50,7 @@ trait Controls
/**
* the \SplFileObject flags holder
*
* @var integer
* @var int
*/
protected $flags = SplFileObject::READ_CSV;

Expand All @@ -66,9 +66,9 @@ abstract public function getIterator();
*
* @param string $delimiter
*
* @return $this
*
* @throws \InvalidArgumentException If $delimeter is not a single character
*
* @return $this
*/
public function setDelimiter($delimiter = ',')
{
Expand All @@ -93,10 +93,10 @@ public function getDelimiter()
/**
* detect the actual number of row according to a delimiter
*
* @param string $delimiter a CSV delimiter
* @param integer $nb_rows the number of row to consider
* @param string $delimiter a CSV delimiter
* @param int $nb_rows the number of row to consider
*
* @return integer
* @return int
*/
protected function fetchRowsCountByDelimiter($delimiter, $nb_rows = 1)
{
Expand All @@ -115,12 +115,12 @@ protected function fetchRowsCountByDelimiter($delimiter, $nb_rows = 1)
/**
* Detect the CSV file delimiter
*
* @param integer $nb_rows
* @param int $nb_rows
* @param string[] $delimiters additional delimiters
*
* @return string[]
*
* @throws \InvalidArgumentException If $nb_rows value is invalid
*
* @return string[]
*/
public function detectDelimiterList($nb_rows = 1, array $delimiters = [])
{
Expand Down Expand Up @@ -149,9 +149,9 @@ public function detectDelimiterList($nb_rows = 1, array $delimiters = [])
*
* @param string $enclosure
*
* @return $this
*
* @throws \InvalidArgumentException If $enclosure is not a single character
*
* @return $this
*/
public function setEnclosure($enclosure = '"')
{
Expand All @@ -178,9 +178,9 @@ public function getEnclosure()
*
* @param string $escape
*
* @return $this
*
* @throws \InvalidArgumentException If $escape is not a single character
*
* @return $this
*/
public function setEscape($escape = "\\")
{
Expand All @@ -205,11 +205,11 @@ public function getEscape()
/**
* Set the Flags associated to the CSV SplFileObject
*
* @param integer $flags
*
* @return $this
* @param int $flags
*
* @throws \InvalidArgumentException If the argument is not a valid integer
*
* @return $this
*/
public function setFlags($flags)
{
Expand All @@ -225,7 +225,7 @@ public function setFlags($flags)
/**
* Returns the file Flags
*
* @return integer
* @return int
*/
public function getFlags()
{
Expand Down
22 changes: 8 additions & 14 deletions src/Config/StreamFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/csv/
* @version 6.0.0
* @version 6.0.1
* @package League.csv
*
* For the full copyright and license information, please view the LICENSE
Expand Down Expand Up @@ -36,7 +36,7 @@ trait StreamFilter
/**
* Stream filtering mode to apply on all filters
*
* @var integer
* @var int
*/
protected $stream_filter_mode = STREAM_FILTER_ALL;

Expand All @@ -56,8 +56,6 @@ trait StreamFilter
* a path to a file
*
* @param \SplFileObject|string $path The file path
*
* @return void
*/
protected function initStreamFilter($path)
{
Expand All @@ -75,8 +73,6 @@ protected function initStreamFilter($path)
* Extract Available stream settings from $path
*
* @param string $path the file path
*
* @return void
*/
protected function extractStreamSettings($path)
{
Expand Down Expand Up @@ -105,8 +101,6 @@ protected function extractStreamSettings($path)
/**
* Check if the trait methods can be used
*
* @return void
*
* @throws \LogicException If the API can not be use
*/
protected function assertStreamable()
Expand All @@ -119,7 +113,7 @@ protected function assertStreamable()
/**
* Tells whether the stream filter capabilities can be used
*
* @return boolean
* @return bool
*/
public function isActiveStreamFilter()
{
Expand All @@ -132,11 +126,11 @@ public function isActiveStreamFilter()
* Set the new Stream Filter mode and remove all
* previously attached stream filters
*
* @param integer $mode
*
* @return $this
* @param int $mode
*
* @throws \OutOfBoundsException If the mode is invalid
*
* @return $this
*/
public function setStreamFilterMode($mode)
{
Expand All @@ -154,7 +148,7 @@ public function setStreamFilterMode($mode)
/**
* stream filter mode getter
*
* @return integer
* @return int
*/
public function getStreamFilterMode()
{
Expand Down Expand Up @@ -213,7 +207,7 @@ protected function sanitizeStreamFilter($filter_name)
*
* @param string $filter_name
*
* @return boolean
* @return bool
*/
public function hasStreamFilter($filter_name)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Iterator/MapIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/csv/
* @version 6.0.0
* @version 6.0.1
* @package League.csv
*
* For the full copyright and license information, please view the LICENSE
Expand Down
12 changes: 6 additions & 6 deletions src/Iterator/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/csv/
* @version 6.0.0
* @version 6.0.1
* @package League.csv
*
* For the full copyright and license information, please view the LICENSE
Expand Down Expand Up @@ -44,14 +44,14 @@ trait Query
/**
* iterator Offset
*
* @var integer
* @var int
*/
protected $iterator_offset = 0;

/**
* iterator maximum length
*
* @var integer
* @var int
*/
protected $iterator_limit = -1;

Expand All @@ -75,7 +75,7 @@ public function setOffset($offset = 0)
/**
* Set LimitInterator Count
*
* @param integer $limit
* @param int $limit
*
* @return $this
*/
Expand Down Expand Up @@ -146,7 +146,7 @@ public function removeSortBy(callable $callable)
*
* @param callable $callable
*
* @return boolean
* @return bool
*/
public function hasSortBy(callable $callable)
{
Expand Down Expand Up @@ -231,7 +231,7 @@ public function removeFilter(callable $callable)
*
* @param callable $callable
*
* @return boolean
* @return bool
*/
public function hasFilter(callable $callable)
{
Expand Down
Loading

0 comments on commit 5392301

Please sign in to comment.