@@ -68,18 +68,18 @@ discard block |
||
68 | 68 | |
69 | 69 | $context->registerSearchProvider(Provider::class); |
70 | 70 | |
71 | - $context->registerService(View::class, function () { |
|
71 | + $context->registerService(View::class, function() { |
|
72 | 72 | return new View(''); |
73 | 73 | }, false); |
74 | 74 | |
75 | - $context->registerService('isCLI', function () { |
|
75 | + $context->registerService('isCLI', function() { |
|
76 | 76 | return \OC::$CLI; |
77 | 77 | }); |
78 | 78 | |
79 | 79 | $context->registerMiddleware(ShareMiddleware::class); |
80 | 80 | $context->registerMiddleware(APIMiddleware::class); |
81 | 81 | |
82 | - $context->registerService('ShareController', function (ContainerInterface $c) { |
|
82 | + $context->registerService('ShareController', function(ContainerInterface $c) { |
|
83 | 83 | $server = $this->getContainer()->getServer(); |
84 | 84 | return new ShareController( |
85 | 85 | $c->get('AppName'), |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | }); |
99 | 99 | |
100 | 100 | |
101 | - $context->registerService('CronService', function (ContainerInterface $c) { |
|
101 | + $context->registerService('CronService', function(ContainerInterface $c) { |
|
102 | 102 | return new CronService( |
103 | 103 | $c->get(CredentialService::class), |
104 | 104 | $c->get(ILogger::class), |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | ); |
110 | 110 | }); |
111 | 111 | |
112 | - $context->registerService('Logger', function (ContainerInterface $c) { |
|
112 | + $context->registerService('Logger', function(ContainerInterface $c) { |
|
113 | 113 | return $c->get(ServerContainer::class)->getLogger(); |
114 | 114 | }); |
115 | 115 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | public function registerNavigationEntry() { |
132 | 132 | $c = $this->getContainer(); |
133 | 133 | $server = $c->getServer(); |
134 | - $navigationEntry = function () use ($c, $server) { |
|
134 | + $navigationEntry = function() use ($c, $server) { |
|
135 | 135 | return [ |
136 | 136 | 'id' => $c->getAppName(), |
137 | 137 | 'order' => 10, |