summaryrefslogtreecommitdiffstats
path: root/src/Config/Controls.php
diff options
context:
space:
mode:
authorignace nyamagana butera <nyamsprod@gmail.com>2015-11-24 12:00:26 +0100
committerignace nyamagana butera <nyamsprod@gmail.com>2015-11-24 12:00:26 +0100
commitbfcc2d633a0160853684ecd0c9c82b6e3b3d32ef (patch)
tree0782a13735eac74199f11b63493f6e1808e3b2a0 /src/Config/Controls.php
parent69bafa6ff924fbf9effe4275d6eb16be81a853ef (diff)
parentc3a2ae5ccdc2ea05de734716f892d9b7f5f28774 (diff)
downloadcsv-bfcc2d633a0160853684ecd0c9c82b6e3b3d32ef.zip
csv-bfcc2d633a0160853684ecd0c9c82b6e3b3d32ef.tar.gz
csv-bfcc2d633a0160853684ecd0c9c82b6e3b3d32ef.tar.bz2
Merge pull request #137 from nyamsprod/features/improve-reader
Reader class complete rewrite
Diffstat (limited to 'src/Config/Controls.php')
-rw-r--r--src/Config/Controls.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/Config/Controls.php b/src/Config/Controls.php
index 5f2c362..3432974 100644
--- a/src/Config/Controls.php
+++ b/src/Config/Controls.php
@@ -103,33 +103,6 @@ trait Controls
}
/**
- * Detects the CSV file delimiters
- *
- * Returns a associative array where each key represents
- * the number of occurences and each value a delimiter with the
- * given occurence
- *
- * This method returns incorrect informations when two delimiters
- * have the same occurrence count
- *
- * DEPRECATION WARNING! This method will be removed in the next major point release
- *
- * @deprecated deprecated since version 7.2
- *
- * @param int $nb_rows
- * @param string[] $delimiters additional delimiters
- *
- * @return string[]
- */
- public function detectDelimiterList($nb_rows = 1, array $delimiters = [])
- {
- $delimiters = array_merge([$this->delimiter, ',', ';', "\t"], $delimiters);
- $stats = $this->fetchDelimitersOccurrence($delimiters, $nb_rows);
-
- return array_flip(array_filter($stats));
- }
-
- /**
* Detect Delimiters occurences in the CSV
*
* Returns a associative array where each key represents