diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 16:45:36 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 16:45:36 +0200 |
commit | 42d69a95f3276a2d6089ca68f635c4e2f6aa7a23 (patch) | |
tree | 6a17fd7998f291e6dec1d996c1e7c724b92b8e58 /fetcher/fetcher.php | |
parent | 0e6598b0734fb927109f745d9c0f3a8605a30ca5 (diff) |
convert tabs indention to indention with 4 spaces because of mixing of both variants in code and better readability on github and websites because you cant set the indention width there and 8 spaces will be used for a tab
Diffstat (limited to 'fetcher/fetcher.php')
-rw-r--r-- | fetcher/fetcher.php | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/fetcher/fetcher.php b/fetcher/fetcher.php index fbdaaa6b8..4b4c09e1c 100644 --- a/fetcher/fetcher.php +++ b/fetcher/fetcher.php @@ -16,39 +16,39 @@ namespace OCA\News\Fetcher; class Fetcher { - private $fetchers; - - public function __construct(){ - $this->fetchers = []; - } - - - /** - * Add an additional fetcher - * @param IFeedFetcher $fetcher the fetcher - */ - public function registerFetcher(IFeedFetcher $fetcher){ - $this->fetchers[] = $fetcher; - } - - /** - * Fetch a feed from remote - * @param string $url remote url of the feed - * @param boolean $getFavicon if the favicon should also be fetched, defaults - * to true - * @throws FetcherException if simple pie fails - * @return array an array containing the new feed and its items, first - * element being the Feed and second element being an array of Items - */ - public function fetch($url, $getFavicon=true){ - foreach($this->fetchers as $fetcher){ - if($fetcher->canHandle($url)){ - return $fetcher->fetch($url, $getFavicon); - } - } - - return [null, []]; - } + private $fetchers; + + public function __construct(){ + $this->fetchers = []; + } + + + /** + * Add an additional fetcher + * @param IFeedFetcher $fetcher the fetcher + */ + public function registerFetcher(IFeedFetcher $fetcher){ + $this->fetchers[] = $fetcher; + } + + /** + * Fetch a feed from remote + * @param string $url remote url of the feed + * @param boolean $getFavicon if the favicon should also be fetched, defaults + * to true + * @throws FetcherException if simple pie fails + * @return array an array containing the new feed and its items, first + * element being the Feed and second element being an array of Items + */ + public function fetch($url, $getFavicon=true){ + foreach($this->fetchers as $fetcher){ + if($fetcher->canHandle($url)){ + return $fetcher->fetch($url, $getFavicon); + } + } + + return [null, []]; + } }
\ No newline at end of file |