Passed
Push — master ( b2c6e2...8f4d53 )
by Morris
12:13 queued 14s
created
apps/files/lib/AppInfo/Application.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 class Application extends App implements IBootstrap {
61 61
 	public const APP_ID = 'files';
62 62
 
63
-	public function __construct(array $urlParams=[]) {
63
+	public function __construct(array $urlParams = []) {
64 64
 		parent::__construct(self::APP_ID, $urlParams);
65 65
 	}
66 66
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 		/**
69 69
 		 * Controllers
70 70
 		 */
71
-		$context->registerService('APIController', function (IContainer $c) {
71
+		$context->registerService('APIController', function(IContainer $c) {
72 72
 			/** @var IServerContainer $server */
73 73
 			$server = $c->query(IServerContainer::class);
74 74
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 		/**
88 88
 		 * Services
89 89
 		 */
90
-		$context->registerService('TagService', function (IContainer $c) {
90
+		$context->registerService('TagService', function(IContainer $c) {
91 91
 			/** @var IServerContainer $server */
92 92
 			$server = $c->query(IServerContainer::class);
93 93
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	private function registerNavigation(IBootContext $context): void {
154 154
 		/** @var IL10N $l10n */
155 155
 		$l10n = $context->getAppContainer()->query(IL10N::class);
156
-		\OCA\Files\App::getNavigationManager()->add(function () use ($l10n) {
156
+		\OCA\Files\App::getNavigationManager()->add(function() use ($l10n) {
157 157
 			return [
158 158
 				'id' => 'files',
159 159
 				'appname' => 'files',
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 				'name' => $l10n->t('All files')
163 163
 			];
164 164
 		});
165
-		\OCA\Files\App::getNavigationManager()->add(function () use ($l10n) {
165
+		\OCA\Files\App::getNavigationManager()->add(function() use ($l10n) {
166 166
 			return [
167 167
 				'id' => 'recent',
168 168
 				'appname' => 'files',
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 				'name' => $l10n->t('Recent')
172 172
 			];
173 173
 		});
174
-		\OCA\Files\App::getNavigationManager()->add(function () use ($l10n) {
174
+		\OCA\Files\App::getNavigationManager()->add(function() use ($l10n) {
175 175
 			return [
176 176
 				'id' => 'favorites',
177 177
 				'appname' => 'files',
Please login to merge, or discard this patch.
apps/files_sharing/lib/AppInfo/Application.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 		/**
77 77
 		 * Core class wrappers
78 78
 		 */
79
-		$container->registerService(Manager::class, function (SimpleContainer $c) use ($server) {
79
+		$container->registerService(Manager::class, function(SimpleContainer $c) use ($server) {
80 80
 			$user = $server->getUserSession()->getUser();
81 81
 			$uid = $user ? $user->getUID() : null;
82 82
 			return new \OCA\Files_Sharing\External\Manager(
@@ -101,12 +101,12 @@  discard block
 block discarded – undo
101 101
 		$container->registerMiddleWare(OCSShareAPIMiddleware::class);
102 102
 		$container->registerMiddleWare(ShareInfoMiddleware::class);
103 103
 
104
-		$container->registerService('ExternalMountProvider', function (IContainer $c) {
104
+		$container->registerService('ExternalMountProvider', function(IContainer $c) {
105 105
 			/** @var \OCP\IServerContainer $server */
106 106
 			$server = $c->query('ServerContainer');
107 107
 			return new \OCA\Files_Sharing\External\MountProvider(
108 108
 				$server->getDatabaseConnection(),
109
-				function () use ($c) {
109
+				function() use ($c) {
110 110
 					return $c->query(Manager::class);
111 111
 				},
112 112
 				$server->getCloudIdManager()
@@ -140,19 +140,19 @@  discard block
 block discarded – undo
140 140
 		$dispatcher->addServiceListener(LoadAdditionalScriptsEvent::class, LoadAdditionalListener::class);
141 141
 		$dispatcher->addServiceListener(LoadSidebar::class, LoadSidebarListener::class);
142 142
 		$dispatcher->addServiceListener(ShareCreatedEvent::class, ShareInteractionListener::class);
143
-		$dispatcher->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function () {
143
+		$dispatcher->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function() {
144 144
 			\OCP\Util::addScript('files_sharing', 'dist/collaboration');
145 145
 		});
146 146
 		$dispatcher->addServiceListener(ShareCreatedEvent::class, UserShareAcceptanceListener::class);
147 147
 		$dispatcher->addServiceListener(UserAddedEvent::class, UserAddedToGroupListener::class);
148 148
 
149 149
 		// notifications api to accept incoming user shares
150
-		$dispatcher->addListener('OCP\Share::postShare', function (GenericEvent $event) {
150
+		$dispatcher->addListener('OCP\Share::postShare', function(GenericEvent $event) {
151 151
 			/** @var Listener $listener */
152 152
 			$listener = $this->getContainer()->query(Listener::class);
153 153
 			$listener->shareNotification($event);
154 154
 		});
155
-		$dispatcher->addListener(IGroup::class . '::postAddUser', function (GenericEvent $event) {
155
+		$dispatcher->addListener(IGroup::class.'::postAddUser', function(GenericEvent $event) {
156 156
 			/** @var Listener $listener */
157 157
 			$listener = $this->getContainer()->query(Listener::class);
158 158
 			$listener->userAddedToGroup($event);
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 		}
168 168
 
169 169
 		// show_Quick_Access stored as string
170
-		\OCA\Files\App::getNavigationManager()->add(function () {
170
+		\OCA\Files\App::getNavigationManager()->add(function() {
171 171
 			$config = \OC::$server->getConfig();
172 172
 			$l = \OC::$server->getL10N('files_sharing');
173 173
 
Please login to merge, or discard this patch.