protected function addData($parser, $data)
    {
        //Having a path data entry means at least 1 callback is interested in
        //the data. Loop through each path here and, if inside that path, add
        //the data
        foreach ($this->pathData as $key => $val) {
            if (strpos($this->currentPath, $key) !== FALSE) {
                $this->pathData[$key] .= $data;
            }
        }

        return $parser;
    }
protected function addData($parser, $data)
    {
        //Having a path data entry means at least 1 callback is interested in
        //the data. Loop through each path here and, if inside that path, add
        //the data
        foreach ($this->pathData as $key => $val) {
            if (strpos($this->currentPath, $key) !== FALSE) {
                $this->pathData[$key] .= $data;
            }
        }

        return $parser;
    }
protected function addData ( $ parser , $ data ) { //Having a path data entry means at least 1 callback is interested in //the data. Loop through each path here and, if inside that path, add //the data foreach ( $ this -> pathData as $ key => $ val ) { if ( strpos ( $ this -> currentPath , $ key ) !== FALSE ) { $ this -> pathData [ $ key ] .= $ data ; } } return $ parser ; }
Adds data to any paths that require it

@param resource $parser
@param string   $data

@return NULL
Adds data to any paths that require it