Passed
Push — master ( f88a4b...8a229d )
by Morris
15:22 queued 01:49
created
apps/files_sharing/lib/AppInfo/Application.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 		/**
81 81
 		 * Core class wrappers
82 82
 		 */
83
-		$container->registerService(Manager::class, function (SimpleContainer $c) use ($server) {
83
+		$container->registerService(Manager::class, function(SimpleContainer $c) use ($server) {
84 84
 			$user = $server->getUserSession()->getUser();
85 85
 			$uid = $user ? $user->getUID() : null;
86 86
 			return new \OCA\Files_Sharing\External\Manager(
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
 		$container->registerMiddleWare(OCSShareAPIMiddleware::class);
106 106
 		$container->registerMiddleWare(ShareInfoMiddleware::class);
107 107
 
108
-		$container->registerService('ExternalMountProvider', function (ContainerInterface $c) {
108
+		$container->registerService('ExternalMountProvider', function(ContainerInterface $c) {
109 109
 			return new \OCA\Files_Sharing\External\MountProvider(
110 110
 				$c->get(IDBConnection::class),
111
-				function () use ($c) {
111
+				function() use ($c) {
112 112
 					return $c->get(Manager::class);
113 113
 				},
114 114
 				$c->get(ICloudIdManager::class)
@@ -143,19 +143,19 @@  discard block
 block discarded – undo
143 143
 		$dispatcher->addServiceListener(BeforeTemplateRenderedEvent::class, LegacyBeforeTemplateRenderedListener::class);
144 144
 		$dispatcher->addServiceListener(LoadSidebar::class, LoadSidebarListener::class);
145 145
 		$dispatcher->addServiceListener(ShareCreatedEvent::class, ShareInteractionListener::class);
146
-		$dispatcher->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function () {
146
+		$dispatcher->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function() {
147 147
 			\OCP\Util::addScript('files_sharing', 'dist/collaboration');
148 148
 		});
149 149
 		$dispatcher->addServiceListener(ShareCreatedEvent::class, UserShareAcceptanceListener::class);
150 150
 		$dispatcher->addServiceListener(UserAddedEvent::class, UserAddedToGroupListener::class);
151 151
 
152 152
 		// notifications api to accept incoming user shares
153
-		$dispatcher->addListener('OCP\Share::postShare', function (GenericEvent $event) {
153
+		$dispatcher->addListener('OCP\Share::postShare', function(GenericEvent $event) {
154 154
 			/** @var Listener $listener */
155 155
 			$listener = $this->getContainer()->query(Listener::class);
156 156
 			$listener->shareNotification($event);
157 157
 		});
158
-		$dispatcher->addListener(IGroup::class . '::postAddUser', function (GenericEvent $event) {
158
+		$dispatcher->addListener(IGroup::class.'::postAddUser', function(GenericEvent $event) {
159 159
 			/** @var Listener $listener */
160 160
 			$listener = $this->getContainer()->query(Listener::class);
161 161
 			$listener->userAddedToGroup($event);
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 		}
171 171
 
172 172
 		// show_Quick_Access stored as string
173
-		\OCA\Files\App::getNavigationManager()->add(function () {
173
+		\OCA\Files\App::getNavigationManager()->add(function() {
174 174
 			$config = \OC::$server->getConfig();
175 175
 			$l = \OC::$server->getL10N('files_sharing');
176 176
 
Please login to merge, or discard this patch.