public static function getLines(string $filename, array $defaultValue = []): array
    {
        $content = self::get($filename);
        $content = str_replace("\r", '', $content);
        if (trim($content) !== '') {
            return explode("\n", $content);
        }
        return $defaultValue;
    }
public static function getLines(string $filename, array $defaultValue = []): array
    {
        $content = self::get($filename);
        $content = str_replace("\r", '', $content);
        if (trim($content) !== '') {
            return explode("\n", $content);
        }
        return $defaultValue;
    }
public static function getLines ( string $ filename , array $ defaultValue = [ ] ) : array { $ content = self :: get ( $ filename ) ; $ content = str_replace ( "\r" , '' , $ content ) ; if ( trim ( $ content ) !== '' ) { return explode ( "\n" , $ content ) ; } return $ defaultValue ; }
Get lines.

@param string $filename
@param string[] $defaultValue Default [].
@return string[]
Get lines .