diff options
author | ignace nyamagana butera <nyamsprod@gmail.com> | 2015-11-27 12:12:09 +0100 |
---|---|---|
committer | ignace nyamagana butera <nyamsprod@gmail.com> | 2015-11-27 12:12:09 +0100 |
commit | 88647661e411ac311330a554c97b910309248681 (patch) | |
tree | 95514b5995f824d9635fdd9a505de8e201d5e6c0 | |
parent | b2eb2c573e7616a11ca52c35186b6f8b9154f40f (diff) | |
download | csv-88647661e411ac311330a554c97b910309248681.zip csv-88647661e411ac311330a554c97b910309248681.tar.gz csv-88647661e411ac311330a554c97b910309248681.tar.bz2 |
Improve docblocks
-rw-r--r-- | .scrutinizer.yml (renamed from scrutinizer.yml) | 4 | ||||
-rw-r--r-- | src/Config/Output.php | 9 | ||||
-rw-r--r-- | src/Reader.php | 2 |
3 files changed, 7 insertions, 8 deletions
diff --git a/scrutinizer.yml b/.scrutinizer.yml index a31325a..daba1fc 100644 --- a/scrutinizer.yml +++ b/.scrutinizer.yml @@ -29,7 +29,7 @@ tools: paths: ['src'] php_loc: enabled: true - excluded_dirs: [vendor, test, exemples] + excluded_dirs: [vendor, test, examples] php_cpd: enabled: true - excluded_dirs: [vendor, test, exemples]
\ No newline at end of file + excluded_dirs: [vendor, test, examples]
\ No newline at end of file diff --git a/src/Config/Output.php b/src/Config/Output.php index fc0e13a..b1ee6ef 100644 --- a/src/Config/Output.php +++ b/src/Config/Output.php @@ -15,6 +15,7 @@ namespace League\Csv\Config; use DomDocument; use InvalidArgumentException; use Iterator; +use League\Csv\AbstractCsv; use League\Csv\Modifier\MapIterator; use SplFileObject; @@ -114,8 +115,8 @@ trait Output { if (! $this->input_bom) { $bom = [ - self::BOM_UTF32_BE, self::BOM_UTF32_LE, - self::BOM_UTF16_BE, self::BOM_UTF16_LE, self::BOM_UTF8, + AbstractCsv::BOM_UTF32_BE, AbstractCsv::BOM_UTF32_LE, + AbstractCsv::BOM_UTF16_BE, AbstractCsv::BOM_UTF16_LE, AbstractCsv::BOM_UTF8, ]; $csv = $this->getIterator(); $csv->setFlags(SplFileObject::READ_CSV); @@ -132,9 +133,7 @@ trait Output } /** - * Returns the CSV Iterator - * - * @return Iterator + * @inheritdoc */ abstract public function getIterator(); diff --git a/src/Reader.php b/src/Reader.php index 9cae134..5cd385e 100644 --- a/src/Reader.php +++ b/src/Reader.php @@ -75,7 +75,7 @@ class Reader extends AbstractCsv */ public function fetchAll(callable $callable = null) { - return $this->applyReturnType(self::TYPE_ARRAY, $this->fetch($callable), false); + return $this->applyReturnType(AbstractCsv::TYPE_ARRAY, $this->fetch($callable), false); } /** |