Passed
Pull Request — master (#1545)
by Julius
03:01
created
lib/AppInfo/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	/**
174 174
 	 */
175 175
 	protected function registerCommentsEventHandler(): void {
176
-		$this->server->getCommentsManager()->registerEventHandler(function () {
176
+		$this->server->getCommentsManager()->registerEventHandler(function() {
177 177
 			return $this->getContainer()->query(CommentEventHandler::class);
178 178
 		});
179 179
 	}
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 		$resourceManager->registerResourceProvider(ResourceProvider::class);
200 200
 		$resourceManager->registerResourceProvider(ResourceProviderCard::class);
201 201
 
202
-		$this->server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', static function () {
202
+		$this->server->getEventDispatcher()->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', static function() {
203 203
 			Util::addScript('deck', 'collections');
204 204
 		});
205 205
 	}
Please login to merge, or discard this patch.
appinfo/app.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 use OCA\Deck\AppInfo\Application;
25 25
 use OCP\AppFramework\QueryException;
26 26
 
27
-if ((@include_once __DIR__ . '/../vendor/autoload.php')=== false) {
27
+if ((@include_once __DIR__ . '/../vendor/autoload.php') === false) {
28 28
 	throw new Exception('Cannot include autoload. Did you run install dependencies using composer?');
29 29
 }
30 30
 
Please login to merge, or discard this patch.
lib/DAV/Calendar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	 */
121 121
 	function calendarQuery(array $filters) {
122 122
 		// In a real implementation this should actually filter
123
-		return array_map(function (Card $card) {
123
+		return array_map(function(Card $card) {
124 124
 			return $card->getId() . '.ics';
125 125
 		}, $this->children);
126 126
 	}
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 		if ($this->childExists($name)) {
140 140
 			$card = array_values(array_filter(
141 141
 				$this->children,
142
-				function ($card) use (&$name) {
142
+				function($card) use (&$name) {
143 143
 					return $card->getId() . '.ics' === $name;
144 144
 				}
145 145
 			));
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	 * @inheritDoc
154 154
 	 */
155 155
 	function getChildren() {
156
-		$childNames = array_map(function (Card $card) {
156
+		$childNames = array_map(function(Card $card) {
157 157
 			return $card->getId() . '.ics';
158 158
 		}, $this->children);
159 159
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 	function childExists($name) {
173 173
 		return count(array_filter(
174 174
 			$this->children,
175
-			function ($card) use (&$name) {
175
+			function($card) use (&$name) {
176 176
 				return $card->getId() . '.ics' === $name;
177 177
 			}
178 178
 		)) > 0;
Please login to merge, or discard this patch.
lib/DAV/CalendarPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	 */
52 52
 	public function fetchAllForCalendarHome(string $principalUri): array {
53 53
 		$boards = $this->boardService->findAll();
54
-		return array_map(function (Board $board) use ($principalUri) {
54
+		return array_map(function(Board $board) use ($principalUri) {
55 55
 			return new Calendar($principalUri, 'board-' . $board->getId(), $board);
56 56
 		}, $boards);
57 57
 	}
Please login to merge, or discard this patch.