Passed
Push — master ( 559a67...b37f24 )
by Roeland
18:14 queued 05:22
created
apps/comments/lib/AppInfo/Application.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -35,61 +35,61 @@
 block discarded – undo
35 35
 
36 36
 class Application extends App {
37 37
 
38
-	public function __construct (array $urlParams = array()) {
39
-		parent::__construct('comments', $urlParams);
40
-		$container = $this->getContainer();
38
+    public function __construct (array $urlParams = array()) {
39
+        parent::__construct('comments', $urlParams);
40
+        $container = $this->getContainer();
41 41
 
42
-		$container->registerAlias('NotificationsController', Notifications::class);
42
+        $container->registerAlias('NotificationsController', Notifications::class);
43 43
 
44
-		$jsSettingsHelper = new JSSettingsHelper($container->getServer());
45
-		Util::connectHook('\OCP\Config', 'js', $jsSettingsHelper, 'extend');
46
-	}
44
+        $jsSettingsHelper = new JSSettingsHelper($container->getServer());
45
+        Util::connectHook('\OCP\Config', 'js', $jsSettingsHelper, 'extend');
46
+    }
47 47
 
48
-	public function register() {
49
-		$server = $this->getContainer()->getServer();
48
+    public function register() {
49
+        $server = $this->getContainer()->getServer();
50 50
 
51
-		$dispatcher = $server->getEventDispatcher();
52
-		$this->registerSidebarScripts($dispatcher);
53
-		$this->registerDavEntity($dispatcher);
54
-		$this->registerNotifier();
55
-		$this->registerCommentsEventHandler();
51
+        $dispatcher = $server->getEventDispatcher();
52
+        $this->registerSidebarScripts($dispatcher);
53
+        $this->registerDavEntity($dispatcher);
54
+        $this->registerNotifier();
55
+        $this->registerCommentsEventHandler();
56 56
 
57
-		$server->getSearch()->registerProvider(Provider::class, ['apps' => ['files']]);
58
-	}
57
+        $server->getSearch()->registerProvider(Provider::class, ['apps' => ['files']]);
58
+    }
59 59
 
60
-	protected function registerSidebarScripts(EventDispatcherInterface $dispatcher) {
61
-		$dispatcher->addListener(
62
-			'OCA\Files::loadAdditionalScripts',
63
-			function() {
64
-				Util::addScript('comments', 'comments');
65
-			}
66
-		);
67
-	}
60
+    protected function registerSidebarScripts(EventDispatcherInterface $dispatcher) {
61
+        $dispatcher->addListener(
62
+            'OCA\Files::loadAdditionalScripts',
63
+            function() {
64
+                Util::addScript('comments', 'comments');
65
+            }
66
+        );
67
+    }
68 68
 
69
-	protected function registerDavEntity(EventDispatcherInterface $dispatcher) {
70
-		$dispatcher->addListener(CommentsEntityEvent::EVENT_ENTITY, function(CommentsEntityEvent $event) {
71
-			$event->addEntityCollection('files', function($name) {
72
-				$nodes = \OC::$server->getUserFolder()->getById((int)$name);
73
-				return !empty($nodes);
74
-			});
75
-		});
76
-	}
69
+    protected function registerDavEntity(EventDispatcherInterface $dispatcher) {
70
+        $dispatcher->addListener(CommentsEntityEvent::EVENT_ENTITY, function(CommentsEntityEvent $event) {
71
+            $event->addEntityCollection('files', function($name) {
72
+                $nodes = \OC::$server->getUserFolder()->getById((int)$name);
73
+                return !empty($nodes);
74
+            });
75
+        });
76
+    }
77 77
 
78
-	protected function registerNotifier() {
79
-		$this->getContainer()->getServer()->getNotificationManager()->registerNotifier(
80
-			function() {
81
-				return $this->getContainer()->query(Notifier::class);
82
-			},
83
-			function () {
84
-				$l = $this->getContainer()->getServer()->getL10NFactory()->get('comments');
85
-				return ['id' => 'comments', 'name' => $l->t('Comments')];
86
-			}
87
-		);
88
-	}
78
+    protected function registerNotifier() {
79
+        $this->getContainer()->getServer()->getNotificationManager()->registerNotifier(
80
+            function() {
81
+                return $this->getContainer()->query(Notifier::class);
82
+            },
83
+            function () {
84
+                $l = $this->getContainer()->getServer()->getL10NFactory()->get('comments');
85
+                return ['id' => 'comments', 'name' => $l->t('Comments')];
86
+            }
87
+        );
88
+    }
89 89
 
90
-	protected function registerCommentsEventHandler() {
91
-		$this->getContainer()->getServer()->getCommentsManager()->registerEventHandler(function () {
92
-			return $this->getContainer()->query(EventHandler::class);
93
-		});
94
-	}
90
+    protected function registerCommentsEventHandler() {
91
+        $this->getContainer()->getServer()->getCommentsManager()->registerEventHandler(function () {
92
+            return $this->getContainer()->query(EventHandler::class);
93
+        });
94
+    }
95 95
 }
Please login to merge, or discard this patch.