summaryrefslogtreecommitdiffstats
path: root/appinfo/application.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-03-21 21:43:58 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-03-21 21:43:58 +0100
commit169ff3f3aa34382ae576ce2468b1961a203b49d7 (patch)
tree1f9c2ed30722a9f9d1a44b1b8ced5a793460945c /appinfo/application.php
parent21ffa118b26672ec94ed5b7e1126e0133cb18048 (diff)
coding style fixes
Diffstat (limited to 'appinfo/application.php')
-rw-r--r--appinfo/application.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index 428cd0e3a..d558a8580 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -86,7 +86,7 @@ class Application extends App {
/**
* Utility
*/
- $container->registerService('ConfigPath', function($c) {
+ $container->registerService('ConfigPath', function() {
return 'config.ini';
});
@@ -130,7 +130,8 @@ class Application extends App {
return new HTMLPurifier($config);
});
- $container->registerService('OCA\News\ArticleEnhancer\Enhancer', function($c) {
+ $container->registerService('OCA\News\ArticleEnhancer\Enhancer',
+ function($c) {
$enhancer = new Enhancer();
// register simple enhancers from config json file
@@ -216,13 +217,18 @@ class Application extends App {
// register fetchers in order
// the most generic fetcher should be the last one
- $fetcher->registerFetcher($c->query('OCA\News\Fetcher\YoutubeFetcher'));
- $fetcher->registerFetcher($c->query('OCA\News\Fetcher\FeedFetcher'));
+ $fetcher->registerFetcher(
+ $c->query('OCA\News\Fetcher\YoutubeFetcher')
+ );
+ $fetcher->registerFetcher(
+ $c->query('OCA\News\Fetcher\FeedFetcher')
+ );
return $fetcher;
});
- $container->registerService('OCA\News\Explore\RecommendedSites', function($c) {
+ $container->registerService('OCA\News\Explore\RecommendedSites',
+ function($c) {
return new RecommendedSites(__DIR__ . '/../explore');
});
}