private function parseLine($line)
    {
        if (!$line) {
            return array();
        }

        $line = trim($line);

        if (!$line) {
            return array();
        }

        $array = array();
        $group = $this->nodeContainsGroup($line);

        if ($group) {
            $this->addGroup($line, $group);
            $line = $this->stripGroup ($line, $group);
        }
        if ($this->startsMappedSequence($line)) {
            return $this->returnMappedSequence($line);
        }
        if ($this->startsMappedValue($line)) {
            return $this->returnMappedValue($line);
        }
        if ($this->isArrayElement($line)) {
            return $this->returnArrayElement($line);
        }
        if ($this->isPlainArray($line)) {
            return $this->returnPlainArray($line);
        }

        return $this->returnKeyValuePair($line);
    }
private function parseLine($line)
    {
        if (!$line) {
            return array();
        }

        $line = trim($line);

        if (!$line) {
            return array();
        }

        $array = array();
        $group = $this->nodeContainsGroup($line);

        if ($group) {
            $this->addGroup($line, $group);
            $line = $this->stripGroup ($line, $group);
        }
        if ($this->startsMappedSequence($line)) {
            return $this->returnMappedSequence($line);
        }
        if ($this->startsMappedValue($line)) {
            return $this->returnMappedValue($line);
        }
        if ($this->isArrayElement($line)) {
            return $this->returnArrayElement($line);
        }
        if ($this->isPlainArray($line)) {
            return $this->returnPlainArray($line);
        }

        return $this->returnKeyValuePair($line);
    }
private function parseLine ( $ line ) { if ( ! $ line ) { return array ( ) ; } $ line = trim ( $ line ) ; if ( ! $ line ) { return array ( ) ; } $ array = array ( ) ; $ group = $ this -> nodeContainsGroup ( $ line ) ; if ( $ group ) { $ this -> addGroup ( $ line , $ group ) ; $ line = $ this -> stripGroup ( $ line , $ group ) ; } if ( $ this -> startsMappedSequence ( $ line ) ) { return $ this -> returnMappedSequence ( $ line ) ; } if ( $ this -> startsMappedValue ( $ line ) ) { return $ this -> returnMappedValue ( $ line ) ; } if ( $ this -> isArrayElement ( $ line ) ) { return $ this -> returnArrayElement ( $ line ) ; } if ( $ this -> isPlainArray ( $ line ) ) { return $ this -> returnPlainArray ( $ line ) ; } return $ this -> returnKeyValuePair ( $ line ) ; }
Parses YAML code and returns an array for a node
@access private
@return array
@param string $line A line from the YAML file
Parses YAML code and returns an array for a node