Passed
Pull Request — master (#1169)
by René
06:00
created
lib/Model/Acl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 	 */
239 239
 	public function getGroupShare(): bool {
240 240
 		return count(
241
-			array_filter($this->shareMapper->findByPoll($this->getPollId()), function ($item) {
241
+			array_filter($this->shareMapper->findByPoll($this->getPollId()), function($item) {
242 242
 				if ($item->getType() === Share::TYPE_GROUP && $this->groupManager->isInGroup($this->getUserId(), $item->getUserId())) {
243 243
 					return true;
244 244
 				}
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 	 */
263 263
 	public function getPersonalShare(): bool {
264 264
 		return count(
265
-			array_filter($this->shareMapper->findByPoll($this->getPollId()), function ($item) {
265
+			array_filter($this->shareMapper->findByPoll($this->getPollId()), function($item) {
266 266
 				if (
267 267
 					($item->getType() === Share::TYPE_USER
268 268
 						|| $item->getType() === Share::TYPE_EXTERNAL
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 	 */
284 284
 	public function getPublicShare(): bool {
285 285
 		return count(
286
-			array_filter($this->shareMapper->findByPoll($this->getPollId()), function ($item) {
286
+			array_filter($this->shareMapper->findByPoll($this->getPollId()), function($item) {
287 287
 				if ($item->getType() === Share::TYPE_PUBLIC && $item->getToken() === $this->getToken()) {
288 288
 					return true;
289 289
 				}
Please login to merge, or discard this patch.
lib/Model/Contact.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 	public const ICON = 'icon-mail';
32 32
 
33 33
 	/** @var Array */
34
-	private $contact =[];
34
+	private $contact = [];
35 35
 
36 36
 	/**
37 37
 	 * Contact constructor.
Please login to merge, or discard this patch.
lib/Model/UserGroupClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@
 block discarded – undo
276 276
 				return new Email($id);
277 277
 				break;
278 278
 			case self::TYPE_PUBLIC:
279
-				return new GenericUser($id,self::TYPE_PUBLIC);
279
+				return new GenericUser($id, self::TYPE_PUBLIC);
280 280
 				break;
281 281
 			case self::TYPE_EXTERNAL:
282 282
 				return new GenericUser($id, self::TYPE_EXTERNAL, $displayName, $emailAddress);
Please login to merge, or discard this patch.
lib/Service/ShareService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 				// via normal shared access and return the created share
110 110
 				return $this->create(
111 111
 					$this->share->getPollId(),
112
-					UserGroupClass::getUserGroupChild( Share::TYPE_USER, \OC::$server->getUserSession()->getUser()->getUID()),
112
+					UserGroupClass::getUserGroupChild(Share::TYPE_USER, \OC::$server->getUserSession()->getUser()->getUID()),
113 113
 					true
114 114
 				);
115 115
 			}
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 		}
172 172
 
173 173
 		$userGroup = UserGroupClass::getUserGroupChild($type, $userId);
174
-		return $this->create($pollId, $userGroup) ;
174
+		return $this->create($pollId, $userGroup);
175 175
 
176 176
 		// $this->share = new Share();
177 177
 		// $this->share->setPollId($pollId);
Please login to merge, or discard this patch.