FeaturePhp/File/LogFile.php
public function getContent() {
        $content = "";
        $maxLen = 0;

        foreach ($this->logs as $log)
            if ($log[0]) {
                $name = $log[0]->getFeature()->getName();
                $maxLen = strlen($name) > $maxLen ? strlen($name) : $maxLen;
            }
        
        foreach ($this->logs as $log)
            $content .= sprintf("%-{$maxLen}s | $log[1]\n", $log[0] ? $log[0]->getFeature()->getName() : "");
        
        return new TextFileContent($content);
    }
public function getContent() {
        $content = "";
        $maxLen = 0;

        foreach ($this->logs as $log)
            if ($log[0]) {
                $name = $log[0]->getFeature()->getName();
                $maxLen = strlen($name) > $maxLen ? strlen($name) : $maxLen;
            }
        
        foreach ($this->logs as $log)
            $content .= sprintf("%-{$maxLen}s | $log[1]\n", $log[0] ? $log[0]->getFeature()->getName() : "");
        
        return new TextFileContent($content);
    }
public function getContent ( ) { $ content = "" ; $ maxLen = 0 ; foreach ( $ this -> logs as $ log ) if ( $ log [ 0 ] ) { $ name = $ log [ 0 ] -> getFeature ( ) -> getName ( ) ; $ maxLen = strlen ( $ name ) > $ maxLen ? strlen ( $ name ) : $ maxLen ; } foreach ( $ this -> logs as $ log ) $ content .= sprintf ( "%-{$maxLen}s | $log[1]\n" , $ log [ 0 ] ? $ log [ 0 ] -> getFeature ( ) -> getName ( ) : "" ) ; return new TextFileContent ( $ content ) ; }
Returns the log file's content.
Tabular output is generated.
@return TextFileContent
Returns the log file s content . Tabular output is generated .