Skip to content

Commit b41f65c

Browse files
committed
fix formatting
1 parent c575892 commit b41f65c

File tree

5 files changed

+25
-7
lines changed

5 files changed

+25
-7
lines changed

lib/domain/atom_feed.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ class AtomFeed {
6767

6868
AtomGenerator generator;
6969
try {
70-
generator = new AtomGenerator.parse(feedElement.findElements("generator").first);
70+
generator =
71+
new AtomGenerator.parse(feedElement.findElements("generator").first);
7172
} on StateError {}
7273

7374
var icon = xmlGetString(feedElement, "icon", strict: false);

lib/domain/atom_link.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ class AtomLink {
88
String title;
99
int length;
1010

11-
AtomLink(this.href, this.rel, this.type, this.hreflang, this.title, this.length);
11+
AtomLink(
12+
this.href,
13+
this.rel,
14+
this.type,
15+
this.hreflang,
16+
this.title,
17+
this.length,
18+
);
1219

1320
factory AtomLink.parse(XmlElement element) {
1421
var href = element.getAttribute("href");

lib/domain/rss_cloud.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ class RssCloud {
77
String registerProcedure;
88
String protocol;
99

10-
RssCloud(this.domain, this.port, this.path, this.registerProcedure, this.protocol);
10+
RssCloud(
11+
this.domain,
12+
this.port,
13+
this.path,
14+
this.registerProcedure,
15+
this.protocol,
16+
);
1117

1218
factory RssCloud.parse(XmlElement node) {
1319
var domain = node.getAttribute("domain");

lib/domain/rss_feed.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ class RssFeed {
5353
throw new ArgumentError("channel not found");
5454
}
5555
var title = xmlGetString(channelElement, "title");
56-
var description = xmlGetString(channelElement, "description", strict: false);
56+
var description =
57+
xmlGetString(channelElement, "description", strict: false);
5758
var link = xmlGetString(channelElement, "link", strict: false);
5859

5960
var feeds = channelElement.findElements("item").map((element) {
@@ -93,12 +94,14 @@ class RssFeed {
9394
}).toList();
9495
}
9596

96-
var lastBuildDate = xmlGetString(channelElement, "lastBuildDate", strict: false);
97+
var lastBuildDate =
98+
xmlGetString(channelElement, "lastBuildDate", strict: false);
9799
var language = xmlGetString(channelElement, "language", strict: false);
98100
var generator = xmlGetString(channelElement, "generator", strict: false);
99101
var copyright = xmlGetString(channelElement, "copyright", strict: false);
100102
var docs = xmlGetString(channelElement, "docs", strict: false);
101-
var managingEditor = xmlGetString(channelElement, "managingEditor", strict: false);
103+
var managingEditor =
104+
xmlGetString(channelElement, "managingEditor", strict: false);
102105
var rating = xmlGetString(channelElement, "rating", strict: false);
103106
var webMaster = xmlGetString(channelElement, "webMaster", strict: false);
104107
var ttl = xmlGetInt(channelElement, "ttl", strict: false);

lib/domain/rss_item.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ class RssItem {
5151

5252
RssContent content;
5353
try {
54-
content = new RssContent.parse(element.findElements("content:encoded").first);
54+
content =
55+
new RssContent.parse(element.findElements("content:encoded").first);
5556
} on StateError {}
5657

5758
return new RssItem(

0 commit comments

Comments
 (0)