Merge branch 'introduce-namespaces' of https://github.com/itexia/parsecsv-for-php into introduce-namespaces

This commit is contained in:
Susann Sgorzaly
2018-02-19 14:10:10 +01:00
6 changed files with 21 additions and 10 deletions

View File

@@ -45,12 +45,17 @@ trait DatatypeTrait {
*
* @access public
*
* @uses getDatatypeFromString
*
* @return array|bool
*/
public function getDatatypes() {
if (empty($this->data)) {
$this->data = $this->parse_string();
}
if (!is_array($this->data)) {
throw new \Exception('No data set yet.');
}
$result = [];
foreach ($this->titles as $cName) {