protected function addFooters($result)
    {
        return ltrim($result, PHP_EOL)
                .PHP_EOL.implode(PHP_EOL, array_reverse($this->footer));
    }
protected function addFooters($result)
    {
        return ltrim($result, PHP_EOL)
                .PHP_EOL.implode(PHP_EOL, array_reverse($this->footer));
    }
protected function addFooters ( $ result ) { return ltrim ( $ result , PHP_EOL ) . PHP_EOL . implode ( PHP_EOL , array_reverse ( $ this -> footer ) ) ; }
Add the stored footers onto the given content.

@param  string  $result
@return string
Add the stored footers onto the given content .