Completed
Pull Request — master (#4039)
by Lukas
27:35 queued 16:08
created
apps/comments/appinfo/app.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -23,48 +23,48 @@
 block discarded – undo
23 23
 
24 24
 $eventDispatcher = \OC::$server->getEventDispatcher();
25 25
 $eventDispatcher->addListener(
26
-	'OCA\Files::loadAdditionalScripts',
27
-	function() {
28
-		\OCP\Util::addScript('oc-backbone-webdav');
29
-		\OCP\Util::addScript('comments', 'merged');
30
-		\OCP\Util::addStyle('comments', 'comments');
31
-	}
26
+    'OCA\Files::loadAdditionalScripts',
27
+    function() {
28
+        \OCP\Util::addScript('oc-backbone-webdav');
29
+        \OCP\Util::addScript('comments', 'merged');
30
+        \OCP\Util::addStyle('comments', 'comments');
31
+    }
32 32
 );
33 33
 
34 34
 $eventDispatcher->addListener(\OCP\Comments\CommentsEntityEvent::EVENT_ENTITY, function(\OCP\Comments\CommentsEntityEvent $event) {
35
-	$event->addEntityCollection('files', function($name) {
36
-		$nodes = \OC::$server->getUserFolder()->getById(intval($name));
37
-		return !empty($nodes);
38
-	});
35
+    $event->addEntityCollection('files', function($name) {
36
+        $nodes = \OC::$server->getUserFolder()->getById(intval($name));
37
+        return !empty($nodes);
38
+    });
39 39
 });
40 40
 
41 41
 $notificationManager = \OC::$server->getNotificationManager();
42 42
 $notificationManager->registerNotifier(
43
-	function() {
44
-		$application = new \OCP\AppFramework\App('comments');
45
-		return $application->getContainer()->query(\OCA\Comments\Notification\Notifier::class);
46
-	},
47
-	function () {
48
-		$l = \OC::$server->getL10N('comments');
49
-		return ['id' => 'comments', 'name' => $l->t('Comments')];
50
-	}
43
+    function() {
44
+        $application = new \OCP\AppFramework\App('comments');
45
+        return $application->getContainer()->query(\OCA\Comments\Notification\Notifier::class);
46
+    },
47
+    function () {
48
+        $l = \OC::$server->getL10N('comments');
49
+        return ['id' => 'comments', 'name' => $l->t('Comments')];
50
+    }
51 51
 );
52 52
 
53 53
 $commentsManager = \OC::$server->getCommentsManager();
54 54
 $commentsManager->registerEventHandler(function () {
55
-	$application = new \OCP\AppFramework\App('comments');
56
-	/** @var \OCA\Comments\EventHandler $handler */
57
-	$handler = $application->getContainer()->query(\OCA\Comments\EventHandler::class);
58
-	return $handler;
55
+    $application = new \OCP\AppFramework\App('comments');
56
+    /** @var \OCA\Comments\EventHandler $handler */
57
+    $handler = $application->getContainer()->query(\OCA\Comments\EventHandler::class);
58
+    return $handler;
59 59
 });
60 60
 $commentsManager->registerDisplayNameResolver('user', function($id) {
61
-	$manager = \OC::$server->getUserManager();
62
-	$user = $manager->get($id);
63
-	if(is_null($user)) {
64
-		$l = \OC::$server->getL10N('comments');
65
-		$displayName = $l->t('Unknown user');
66
-	} else {
67
-		$displayName = $user->getDisplayName();
68
-	}
69
-	return $displayName;
61
+    $manager = \OC::$server->getUserManager();
62
+    $user = $manager->get($id);
63
+    if(is_null($user)) {
64
+        $l = \OC::$server->getL10N('comments');
65
+        $displayName = $l->t('Unknown user');
66
+    } else {
67
+        $displayName = $user->getDisplayName();
68
+    }
69
+    return $displayName;
70 70
 });
Please login to merge, or discard this patch.