Passed
Push — master ( 92b674...05df38 )
by Morris
14:36 queued 10s
created
apps/dav/lib/CalDAV/Publishing/PublishPlugin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,12 +114,12 @@  discard block
 block discarded – undo
114 114
 		$this->server = $server;
115 115
 
116 116
 		$this->server->on('method:POST', [$this, 'httpPost']);
117
-		$this->server->on('propFind',    [$this, 'propFind']);
117
+		$this->server->on('propFind', [$this, 'propFind']);
118 118
 	}
119 119
 
120 120
 	public function propFind(PropFind $propFind, INode $node) {
121 121
 		if ($node instanceof Calendar) {
122
-			$propFind->handle('{'.self::NS_CALENDARSERVER.'}publish-url', function () use ($node) {
122
+			$propFind->handle('{'.self::NS_CALENDARSERVER.'}publish-url', function() use ($node) {
123 123
 				if ($node->getPublishStatus()) {
124 124
 					// We return the publish-url only if the calendar is published.
125 125
 					$token = $node->getPublishStatus();
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 				}
130 130
 			});
131 131
 
132
-			$propFind->handle('{'.self::NS_CALENDARSERVER.'}allowed-sharing-modes', function () use ($node) {
132
+			$propFind->handle('{'.self::NS_CALENDARSERVER.'}allowed-sharing-modes', function() use ($node) {
133 133
 				$canShare = (!$node->isSubscription() && $node->canWrite());
134 134
 				$canPublish = (!$node->isSubscription() && $node->canWrite());
135 135
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 					$canPublish &= ($node->getOwner() === $node->getPrincipalURI());
139 139
 				}
140 140
 
141
-				return new AllowedSharingModes((bool)$canShare, (bool)$canPublish);
141
+				return new AllowedSharingModes((bool) $canShare, (bool) $canPublish);
142 142
 			});
143 143
 		}
144 144
 	}
Please login to merge, or discard this patch.