summaryrefslogtreecommitdiffstats
path: root/articleenhancer/enhancer.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-13 00:30:06 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-13 00:30:06 +0200
commit7949ab9216b3958c93ea409298d026e1e364b66b (patch)
tree5ba5946ec9993b2ac32811555cd832b99031e3fc /articleenhancer/enhancer.php
parentbb88dd5d7becb42830a052ca8efee9103c722081 (diff)
try to fix return type of enhancer and feed fetcher
Diffstat (limited to 'articleenhancer/enhancer.php')
-rw-r--r--articleenhancer/enhancer.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/articleenhancer/enhancer.php b/articleenhancer/enhancer.php
index 6fa617701..9d4a644ab 100644
--- a/articleenhancer/enhancer.php
+++ b/articleenhancer/enhancer.php
@@ -18,6 +18,10 @@ class Enhancer {
private $enhancers = array();
+ /**
+ * @param string $feedUrl
+ * @param ArticleEnhancer $enhancer
+ */
public function registerEnhancer($feedUrl, ArticleEnhancer $enhancer){
$feedUrl = $this->removeTrailingSlash($feedUrl);
@@ -30,6 +34,10 @@ class Enhancer {
}
+ /**
+ * @param \OCA\News\Db\Item $item
+ * @param string $feedUrl
+ */
public function enhance($item, $feedUrl){
$feedUrl = $this->removeTrailingSlash($feedUrl);
@@ -41,6 +49,9 @@ class Enhancer {
}
+ /**
+ * @param string $url
+ */
private function removeTrailingSlash($url) {
if($url[strlen($url)-1] === '/') {
return substr($url, 0, -1);