diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-10-14 21:15:16 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-10-14 21:15:47 +0200 |
commit | 1e37bc139bb28e6fe9b0dd0d477e2dbef5a2cab9 (patch) | |
tree | fa56b07316b914f39e2dd02b70a61b05b016b967 /opmlparser.php | |
parent | 365cecd2ec1bf2552ae0d8e064680ed36b0bf04e (diff) |
Whitespace cleanup
Diffstat (limited to 'opmlparser.php')
-rw-r--r-- | opmlparser.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/opmlparser.php b/opmlparser.php index 61514a3f7..2920c84c3 100644 --- a/opmlparser.php +++ b/opmlparser.php @@ -1,4 +1,4 @@ -<?php +<?php /** * ownCloud - News app @@ -17,7 +17,7 @@ class OPMLParser { private $body; private $data; private $count; - + private function __construct() { $this->data = array(); $this->count = 0; @@ -38,7 +38,7 @@ class OPMLParser { public function getData() { return $this->data; } - + /** * @brief * @returns the number of feeds found in the file @@ -46,7 +46,7 @@ class OPMLParser { public function getCount() { return $this->count; } - + /** * @brief This is used as a utility private function by the method OPMLParser::parse */ @@ -69,7 +69,7 @@ class OPMLParser { } return $list; } - + private static function parseFeed($rawfeed) { $url = (string)$rawfeed['xmlUrl']; $title = (string)$rawfeed['title']; @@ -77,21 +77,21 @@ class OPMLParser { $feed = new OCA\News\Feed($url, $title); return $feed; } - + /** - * @brief + * @brief * @param $raw the XML string to be parsed * @return an object of the OPMLParser class itself * or null if the parsing failed - * @throws + * @throws */ public static function parse($raw) { $parsed = new OPMLParser(); - + $xml_parser = new SimpleXMLElement($raw, LIBXML_NOERROR); $parsed->title = (string)$xml_parser->head->title; $parsed->body = $xml_parser->body; - + if ($parsed->body != null) { $parsed->data = self::parseFolder($parsed->body, $parsed->count); return $parsed; |