src/Support/DataSeparation.php
protected function splitData($data, $sectionNames)
    {
        $sections = explode(
            $this->getDataSeparator(),
            str_replace("\n\r", "\n", $data),
            count($sectionNames)
        );

        try {
            $parts = array_combine($sectionNames, $sections);
        } catch (\Exception $e) {
            throw new EntityParseException;
        }

        return $parts;
    }
protected function splitData($data, $sectionNames)
    {
        $sections = explode(
            $this->getDataSeparator(),
            str_replace("\n\r", "\n", $data),
            count($sectionNames)
        );

        try {
            $parts = array_combine($sectionNames, $sections);
        } catch (\Exception $e) {
            throw new EntityParseException;
        }

        return $parts;
    }
protected function splitData ( $ data , $ sectionNames ) { $ sections = explode ( $ this -> getDataSeparator ( ) , str_replace ( "\n\r" , "\n" , $ data ) , count ( $ sectionNames ) ) ; try { $ parts = array_combine ( $ sectionNames , $ sections ) ; } catch ( \ Exception $ e ) { throw new EntityParseException ; } return $ parts ; }
Split data by the separator

@param string $data
@param array $sectionNames
@return array
Split data by the separator