src/SagePHP/Configuration/HostsFile.php
public function getContent()
    {
        $this->processFile($this->getFile());
        $buffer = array(
            '#',
            '# Generated by SagePHP HostsFile Component',
            '# see https://github.com/SagePHP/',
            '#',
            '',
        );


        foreach ($this->ips as $ip => $hosts) {
            $buffer[] = sprintf("%s\t%s", $ip, implode($hosts, ' '));
        }

        return implode($buffer, "\n");
    }
public function getContent()
    {
        $this->processFile($this->getFile());
        $buffer = array(
            '#',
            '# Generated by SagePHP HostsFile Component',
            '# see https://github.com/SagePHP/',
            '#',
            '',
        );


        foreach ($this->ips as $ip => $hosts) {
            $buffer[] = sprintf("%s\t%s", $ip, implode($hosts, ' '));
        }

        return implode($buffer, "\n");
    }
public function getContent ( ) { $ this -> processFile ( $ this -> getFile ( ) ) ; $ buffer = array ( '#' , '# Generated by SagePHP HostsFile Component' , '# see https://github.com/SagePHP/' , '#' , '' , ) ; foreach ( $ this -> ips as $ ip => $ hosts ) { $ buffer [ ] = sprintf ( "%s\t%s" , $ ip , implode ( $ hosts , ' ' ) ) ; } return implode ( $ buffer , "\n" ) ; }
Returns the formatted filr contend

@return string
Returns the formatted filr contend