Passed
Pull Request — master (#677)
by rakekniven
03:51
created
lib/Controller/EventController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -230,8 +230,8 @@
 block discarded – undo
230 230
 			}
231 231
 
232 232
 			$this->event->setOwner($this->userId);
233
-			$this->event->setCreated(date('Y-m-d H:i:s',time()));
234
-			$this->logger->error(date('Y-m-d H:i:s',time()));
233
+			$this->event->setCreated(date('Y-m-d H:i:s', time()));
234
+			$this->logger->error(date('Y-m-d H:i:s', time()));
235 235
 		} finally {
236 236
 
237 237
 			$this->event->setTitle($event['title']);
Please login to merge, or discard this patch.
lib/Controller/SystemController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
 		$votes = $this->voteMapper->findParticipantsByPoll($pollId);
172 172
 		foreach ($votes as $vote) {
173
-			if ($vote->getUserId() !== '' && $vote->getUserId() !== null ) {
173
+			if ($vote->getUserId() !== '' && $vote->getUserId() !== null) {
174 174
 				$list[] = [
175 175
 					'id' => $vote->getUserId(),
176 176
 					'user' => $vote->getUserId(),
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
 		$shares = $this->shareMapper->findByPoll($pollId);
184 184
 		foreach ($shares as $share) {
185
-			if ($share->getUserId() !== '' && $share->getUserId() !== null ) {
185
+			if ($share->getUserId() !== '' && $share->getUserId() !== null) {
186 186
 				$list[] = [
187 187
 					'id' => $share->getUserId(),
188 188
 					'user' => $share->getUserId(),
Please login to merge, or discard this patch.
lib/Controller/ShareController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
 			));
206 206
 
207 207
 		} else {
208
-			return new DataResponse('Wrong share type: ' .$userShare->getType() , Http::STATUS_FORBIDDEN);
208
+			return new DataResponse('Wrong share type: ' . $userShare->getType(), Http::STATUS_FORBIDDEN);
209 209
 		}
210 210
 
211 211
 
Please login to merge, or discard this patch.
tests/Unit/FactoryMuffin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         foreach ($attr as $key => $kind) {
23 23
             $value = $this->factory->generate($kind, $model, $this);
24 24
 
25
-            $setter = 'set'.ucfirst(static::camelize($key));
25
+            $setter = 'set' . ucfirst(static::camelize($key));
26 26
             // check if there is a setter and use it instead
27 27
             if ($model instanceof Entity && is_callable([$model, $setter])) {
28 28
                 $model->$setter($value);
Please login to merge, or discard this patch.
lib/Model/Acl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 	public function getGroupShare(): bool {
175 175
 		return count(
176 176
 			array_filter($this->shareMapper->findByPoll($this->getPollId()), function($item) {
177
-				if ($item->getType() === 'group' && $this->groupManager->isInGroup($this->getUserId(),$item->getUserId())) {
177
+				if ($item->getType() === 'group' && $this->groupManager->isInGroup($this->getUserId(), $item->getUserId())) {
178 178
 					return true;
179 179
 				}
180 180
 			})
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 	 * @return bool
234 234
 	 */
235 235
 	public function getAllowSeeUsernames(): bool {
236
-		return !(($this->event->getIsAnonymous() && !$this->getIsOwner()) || $this->event->getFullAnonymous());;
236
+		return !(($this->event->getIsAnonymous() && !$this->getIsOwner()) || $this->event->getFullAnonymous()); ;
237 237
 	}
238 238
 
239 239
 	/**
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 			$this->foundByToken = true;
278 278
 			$this->setPollId($share->getPollId());
279 279
 
280
-			if (($share->getType() === 'group' || $share->getType() === 'user')  && !\OC::$server->getUserSession()->isLoggedIn()) {
280
+			if (($share->getType() === 'group' || $share->getType() === 'user') && !\OC::$server->getUserSession()->isLoggedIn()) {
281 281
 				// User must be logged in for shareType user and group
282 282
 				$this->setPollId(0);
283 283
 				$this->setUserId(null);
Please login to merge, or discard this patch.
lib/Controller/NotificationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@
 block discarded – undo
289 289
 			$emailTemplate->addBodyText(str_replace(
290 290
 				['{user}', '{title}'],
291 291
 				[$sender, $event->getTitle()],
292
-				$trans->t('{user} invited you to take part in the poll "{title}"' )
292
+				$trans->t('{user} invited you to take part in the poll "{title}"')
293 293
 			));
294 294
 
295 295
 				$emailTemplate->addBodyButton(
Please login to merge, or discard this patch.