summaryrefslogtreecommitdiffstats
path: root/articleenhancer
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-06-25 11:22:08 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-06-25 11:22:08 +0200
commit06367d8b81407fc2948e0f666b38f4de2dffbd89 (patch)
treed5cfb74e70560f3abce5aeccf8994dcbe2829e24 /articleenhancer
parent60c4dfbd9661b93bce14a6a429a3f23d19b5327c (diff)
style fixes
Diffstat (limited to 'articleenhancer')
-rw-r--r--articleenhancer/enhancer.php7
-rw-r--r--articleenhancer/xpatharticleenhancer.php17
2 files changed, 13 insertions, 11 deletions
diff --git a/articleenhancer/enhancer.php b/articleenhancer/enhancer.php
index f9b4d5d64..9aa2153d1 100644
--- a/articleenhancer/enhancer.php
+++ b/articleenhancer/enhancer.php
@@ -50,9 +50,10 @@ class Enhancer {
}
- /**
- * @param string $url
- */
+ /**
+ * @param string $url
+ * @return string
+ */
private function removeTrailingSlash($url) {
if($url[strlen($url)-1] === '/') {
return substr($url, 0, -1);
diff --git a/articleenhancer/xpatharticleenhancer.php b/articleenhancer/xpatharticleenhancer.php
index ecde135bf..2499476e9 100644
--- a/articleenhancer/xpatharticleenhancer.php
+++ b/articleenhancer/xpatharticleenhancer.php
@@ -21,20 +21,21 @@ use \OCA\News\Utility\Config;
class XPathArticleEnhancer implements ArticleEnhancer {
- private $feedRegex;
private $fileFactory;
private $maximumTimeout;
private $config;
private $regexXPathPair;
- /**
- * @param SimplePieFileFactory a factory for getting a simple pie file instance
- * @param array $regexXPathPair an associative array containing regex to
- * match the url and the xpath that should be used for it to extract the
- * page
- * @param int $maximumTimeout maximum timeout in seconds, defaults to 10 sec
- */
+ /**
+ * @param \OCA\News\Utility\SimplePieAPIFactory $fileFactory
+ * @param array $regexXPathPair an associative array containing regex to
+ * match the url and the xpath that should be used for it to extract the
+ * page
+ * @param \OCA\News\Utility\Config $config
+ * @internal param \OCA\News\ArticleEnhancer\a $SimplePieFileFactory factory for getting a simple pie file instance
+ * @internal param int $maximumTimeout maximum timeout in seconds, defaults to 10 sec
+ */
public function __construct(SimplePieAPIFactory $fileFactory,
array $regexXPathPair, Config $config){
$this->regexXPathPair = $regexXPathPair;