diff options
Diffstat (limited to 'articleenhancer')
-rw-r--r-- | articleenhancer/enhancer.php | 2 | ||||
-rw-r--r-- | articleenhancer/xpatharticleenhancer.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/articleenhancer/enhancer.php b/articleenhancer/enhancer.php index cfdc960b6..f9b4d5d64 100644 --- a/articleenhancer/enhancer.php +++ b/articleenhancer/enhancer.php @@ -16,7 +16,7 @@ namespace OCA\News\ArticleEnhancer; class Enhancer { - private $enhancers = array(); + private $enhancers = []; /** * @param string $feedUrl diff --git a/articleenhancer/xpatharticleenhancer.php b/articleenhancer/xpatharticleenhancer.php index 6761fd0c5..ecde135bf 100644 --- a/articleenhancer/xpatharticleenhancer.php +++ b/articleenhancer/xpatharticleenhancer.php @@ -136,7 +136,7 @@ class XPathArticleEnhancer implements ArticleEnhancer { // remove <html></html> $dom->replaceChild($dom->firstChild->firstChild, $dom->firstChild); - $substitution = array("href", "src"); + $substitution = ["href", "src"]; foreach ($substitution as $attribute) { $xpath = new \DOMXpath($dom); |