Skip to content

Commit 0eb9f70

Browse files
committed
whitespace
1 parent d0aeb0e commit 0eb9f70

1 file changed

Lines changed: 36 additions & 36 deletions

File tree

solid/lib/AppInfo/Application.php

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -24,49 +24,49 @@
2424
use OCP\Util;
2525

2626
class Application extends App implements IBootstrap {
27-
public const APP_ID = 'solid';
27+
public const APP_ID = 'solid';
2828

29-
/**
30-
* @param array $urlParams
31-
*/
32-
public function __construct(array $urlParams = []) {
33-
parent::__construct(self::APP_ID, $urlParams);
29+
/**
30+
* @param array $urlParams
31+
*/
32+
public function __construct(array $urlParams = []) {
33+
parent::__construct(self::APP_ID, $urlParams);
3434

35-
$container = $this->getContainer();
35+
$container = $this->getContainer();
3636

37-
$container->registerService(SolidCorsMiddleware::class, function($c): SolidCorsMiddleware{
38-
return new SolidCorsMiddleware(
39-
$c->get(IRequest::class)
40-
);
41-
});
37+
$container->registerService(SolidCorsMiddleware::class, function($c): SolidCorsMiddleware {
38+
return new SolidCorsMiddleware(
39+
$c->get(IRequest::class)
40+
);
41+
});
4242

43-
// executed in the order that it is registered
44-
$container->registerMiddleware(SolidCorsMiddleware::class);
45-
}
43+
// executed in the order that it is registered
44+
$container->registerMiddleware(SolidCorsMiddleware::class);
45+
}
4646

47-
public function register(IRegistrationContext $context): void {
48-
$context->registerWellKnownHandler(\OCA\Solid\WellKnown\OpenIdConfigurationHandler::class);
47+
public function register(IRegistrationContext $context): void {
48+
$context->registerWellKnownHandler(\OCA\Solid\WellKnown\OpenIdConfigurationHandler::class);
4949

50-
/**
51-
* Core class wrappers
52-
*/
50+
/**
51+
* Core class wrappers
52+
*/
5353

54-
$context->registerService('UserService', function($c) {
55-
return new \OCA\Solid\Service\UserService(
56-
$c->query('UserSession')
57-
);
58-
});
59-
$context->registerService('UserSession', function($c) {
60-
return $c->query('ServerContainer')->getUserSession();
61-
});
54+
$context->registerService('UserService', function($c) {
55+
return new \OCA\Solid\Service\UserService(
56+
$c->query('UserSession')
57+
);
58+
});
59+
$context->registerService('UserSession', function($c) {
60+
return $c->query('ServerContainer')->getUserSession();
61+
});
6262

63-
// currently logged in user, userId can be gotten by calling the
64-
// getUID() method on it
65-
$context->registerService('User', function($c) {
66-
return $c->query('UserSession')->getUser();
67-
});
68-
}
63+
// currently logged in user, userId can be gotten by calling the
64+
// getUID() method on it
65+
$context->registerService('User', function($c) {
66+
return $c->query('UserSession')->getUser();
67+
});
68+
}
6969

70-
public function boot(IBootContext $context): void {
71-
}
70+
public function boot(IBootContext $context): void {
71+
}
7272
}

0 commit comments

Comments
 (0)