change code order to make shorter lines
This commit is contained in:
parent
1a81356622
commit
120802b807
|
@ -68,12 +68,13 @@ class FeedImporter extends QueueHandler
|
||||||
try {
|
try {
|
||||||
$doc = DOMDocument::loadXML($xml);
|
$doc = DOMDocument::loadXML($xml);
|
||||||
|
|
||||||
if ($doc->documentElement->namespaceURI != Activity::ATOM ||
|
$feed = $doc->documentElement;
|
||||||
$doc->documentElement->localName != 'feed') {
|
|
||||||
|
if ($feed->namespaceURI != Activity::ATOM ||
|
||||||
|
$feed->localName != 'feed') {
|
||||||
throw new ClientException(_("Not an atom feed."));
|
throw new ClientException(_("Not an atom feed."));
|
||||||
}
|
}
|
||||||
|
|
||||||
$feed = $doc->documentElement;
|
|
||||||
|
|
||||||
$author = ActivityUtils::getFeedAuthor($feed);
|
$author = ActivityUtils::getFeedAuthor($feed);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user