Skip to content

Commit

Permalink
docblock fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Aug 27, 2014
1 parent 8408937 commit 91b7776
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions src/AbstractCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ abstract class AbstractCsv implements JsonSerializable, IteratorAggregate
* an object that implements the `__toString` method
* a path to a file
*
* @param \SplFileInfo|object|string $path The file path
* @param string $open_mode the file open mode flag
* @param object|string $path The file path
* @param string $open_mode the file open mode flag
*/
public function __construct($path, $open_mode = 'r+')
{
Expand Down Expand Up @@ -127,14 +127,14 @@ public function __destruct()
*
* BUT NOT a SplTempFileObject
*
* ```php
* <code>
*<?php
* $csv = new Reader::createFromPath('/path/to/file.csv', 'a+');
* $csv = new Reader::createFromPath(new SplFileInfo('/path/to/file.csv'));
* $csv = new Reader::createFromPath(new SplFileObject('/path/to/file.csv'), 'rb');
*
* ?>
* ```
* </code>
*
* @param object|string $path file path
* @param string $open_mode the file open mode flag
Expand Down Expand Up @@ -164,13 +164,13 @@ public static function createFromPath($path, $open_mode = 'r+')
* - a SplFileObject,
* - a SplTempFileObject
*
* ```php
* <code>
*<?php
* $csv = new Writer::createFromFileObject(new SplFileInfo('/path/to/file.csv'));
* $csv = new Writer::createFromFileObject(new SplTempFileObject);
*
* ?>
* ```
* </code>
*
* @param SplFileObject $obj
*
Expand Down Expand Up @@ -281,7 +281,7 @@ public function jsonSerialize()
*
* @param string $str
*
* @return $this
* @return static
*/
public function setEncodingFrom($str)
{
Expand Down
10 changes: 5 additions & 5 deletions src/Config/StreamFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function isActiveStreamFilter()
*
* @param integer $mode
*
* @return static
* @return $this
*
* @throws \OutOfBoundsException If the mode is invalid
*/
Expand Down Expand Up @@ -168,7 +168,7 @@ public function getStreamFilterMode()
*
* @param string $filter_name a string or an object that implements the '__toString' method
*
* @return static
* @return $this
*/
public function appendStreamFilter($filter_name)
{
Expand All @@ -183,7 +183,7 @@ public function appendStreamFilter($filter_name)
*
* @param string $filter_name a string or an object that implements the '__toString' method
*
* @return static
* @return $this
*/
public function prependStreamFilter($filter_name)
{
Expand Down Expand Up @@ -227,7 +227,7 @@ public function hasStreamFilter($filter_name)
*
* @param string $filter_name
*
* @return static
* @return $this
*/
public function removeStreamFilter($filter_name)
{
Expand All @@ -243,7 +243,7 @@ public function removeStreamFilter($filter_name)
/**
* Remove all registered stream filter
*
* @return static
* @return $this
*/
public function clearStreamFilter()
{
Expand Down

0 comments on commit 91b7776

Please sign in to comment.