Passed
Push — master ( fc4e87...bbd3e2 )
by Blizzz
17:23 queued 18s
created
apps/dav/lib/CalDAV/Schedule/IMipPlugin.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
 		/** @var Parameter|string|null $senderName */
178 178
 		$senderName = $iTipMessage->senderName ?: null;
179
-		if($senderName instanceof Parameter) {
179
+		if ($senderName instanceof Parameter) {
180 180
 			$senderName = $senderName->getValue() ?? null;
181 181
 		}
182 182
 
@@ -215,11 +215,11 @@  discard block
 block discarded – undo
215 215
 		}
216 216
 
217 217
 		$data = [
218
-			'attendee_name' => (string)$meetingAttendeeName ?: $defaultVal,
219
-			'invitee_name' => (string)$meetingInviteeName ?: $defaultVal,
220
-			'meeting_title' => (string)$meetingTitle ?: $defaultVal,
221
-			'meeting_description' => (string)$meetingDescription ?: $defaultVal,
222
-			'meeting_url' => (string)$meetingUrl ?: $defaultVal,
218
+			'attendee_name' => (string) $meetingAttendeeName ?: $defaultVal,
219
+			'invitee_name' => (string) $meetingInviteeName ?: $defaultVal,
220
+			'meeting_title' => (string) $meetingTitle ?: $defaultVal,
221
+			'meeting_description' => (string) $meetingDescription ?: $defaultVal,
222
+			'meeting_url' => (string) $meetingUrl ?: $defaultVal,
223 223
 		];
224 224
 
225 225
 		$fromEMail = Util::getDefaultEmailAddress('invitations-noreply');
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 			->setTo([$recipient => $recipientName])
231 231
 			->setReplyTo([$sender => $senderName]);
232 232
 
233
-		$template = $this->mailer->createEMailTemplate('dav.calendarInvite.' . $method, $data);
233
+		$template = $this->mailer->createEMailTemplate('dav.calendarInvite.'.$method, $data);
234 234
 		$template->addHeader();
235 235
 
236 236
 		$summary = ((string) $summary !== '') ? (string) $summary : $l10n->t('Untitled event');
@@ -275,8 +275,8 @@  discard block
 block discarded – undo
275 275
 
276 276
 		$attachment = $this->mailer->createAttachment(
277 277
 			$iTipMessage->message->serialize(),
278
-			'event.ics',// TODO(leon): Make file name unique, e.g. add event id
279
-			'text/calendar; method=' . $iTipMessage->method
278
+			'event.ics', // TODO(leon): Make file name unique, e.g. add event id
279
+			'text/calendar; method='.$iTipMessage->method
280 280
 		);
281 281
 		$message->attach($attachment);
282 282
 
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
 				$lastOccurrence = $firstOccurrence;
324 324
 			}
325 325
 		} else {
326
-			$it = new EventIterator($vObject, (string)$component->UID);
326
+			$it = new EventIterator($vObject, (string) $component->UID);
327 327
 			$maxDate = new \DateTime(self::MAX_DATE);
328 328
 			if ($it->isInfinite()) {
329 329
 				$lastOccurrence = $maxDate->getTimestamp();
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
 			$localeStart = $l10n->l('date', $dtstartDt, ['width' => 'medium']);
449 449
 			$localeEnd = $l10n->l('date', $dtendDt, ['width' => 'medium']);
450 450
 
451
-			return $localeStart . ' - ' . $localeEnd;
451
+			return $localeStart.' - '.$localeEnd;
452 452
 		}
453 453
 
454 454
 		/** @var Property\ICalendar\DateTime $dtstart */
@@ -467,26 +467,26 @@  discard block
 block discarded – undo
467 467
 			}
468 468
 		}
469 469
 
470
-		$localeStart = $l10n->l('weekdayName', $dtstartDt, ['width' => 'abbreviated']) . ', ' .
470
+		$localeStart = $l10n->l('weekdayName', $dtstartDt, ['width' => 'abbreviated']).', '.
471 471
 			$l10n->l('datetime', $dtstartDt, ['width' => 'medium|short']);
472 472
 
473 473
 		// always show full date with timezone if timezones are different
474 474
 		if ($startTimezone !== $endTimezone) {
475 475
 			$localeEnd = $l10n->l('datetime', $dtendDt, ['width' => 'medium|short']);
476 476
 
477
-			return $localeStart . ' (' . $startTimezone . ') - ' .
478
-				$localeEnd . ' (' . $endTimezone . ')';
477
+			return $localeStart.' ('.$startTimezone.') - '.
478
+				$localeEnd.' ('.$endTimezone.')';
479 479
 		}
480 480
 
481 481
 		// show only end time if date is the same
482 482
 		if ($this->isDayEqual($dtstartDt, $dtendDt)) {
483 483
 			$localeEnd = $l10n->l('time', $dtendDt, ['width' => 'short']);
484 484
 		} else {
485
-			$localeEnd = $l10n->l('weekdayName', $dtendDt, ['width' => 'abbreviated']) . ', ' .
485
+			$localeEnd = $l10n->l('weekdayName', $dtendDt, ['width' => 'abbreviated']).', '.
486 486
 				$l10n->l('datetime', $dtendDt, ['width' => 'medium|short']);
487 487
 		}
488 488
 
489
-		return  $localeStart . ' - ' . $localeEnd . ' (' . $startTimezone . ')';
489
+		return  $localeStart.' - '.$localeEnd.' ('.$startTimezone.')';
490 490
 	}
491 491
 
492 492
 	/**
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
 			/** @var Property\ICalendar\CalAddress $organizer */
586 586
 			$organizer = $vevent->ORGANIZER;
587 587
 			$organizerURI = $organizer->getNormalizedValue();
588
-			[$scheme,$organizerEmail] = explode(':', $organizerURI, 2); # strip off scheme mailto:
588
+			[$scheme, $organizerEmail] = explode(':', $organizerURI, 2); # strip off scheme mailto:
589 589
 			/** @var string|null $organizerName */
590 590
 			$organizerName = isset($organizer['CN']) ? $organizer['CN'] : null;
591 591
 			$organizerHTML = sprintf('<a href="%s">%s</a>',
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
 		$attendeesText = [];
615 615
 		foreach ($attendees as $attendee) {
616 616
 			$attendeeURI = $attendee->getNormalizedValue();
617
-			[$scheme,$attendeeEmail] = explode(':', $attendeeURI, 2); # strip off scheme mailto:
617
+			[$scheme, $attendeeEmail] = explode(':', $attendeeURI, 2); # strip off scheme mailto:
618 618
 			$attendeeName = isset($attendee['CN']) ? $attendee['CN'] : null;
619 619
 			$attendeeHTML = sprintf('<a href="%s">%s</a>',
620 620
 				htmlspecialchars($attendeeURI),
Please login to merge, or discard this patch.
apps/settings/templates/settings/admin/additional-mail.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
 
49 49
 <div class="section" id="mail_general_settings">
50 50
 	<form id="mail_general_settings_form" class="mail_settings">
51
-		<h2><?php p($l->t('Email server'));?></h2>
51
+		<h2><?php p($l->t('Email server')); ?></h2>
52 52
 		<a target="_blank" rel="noreferrer noopener" class="icon-info"
53
-		   title="<?php p($l->t('Open documentation'));?>"
53
+		   title="<?php p($l->t('Open documentation')); ?>"
54 54
 		   href="<?php p(link_to_docs('admin-email')); ?>"></a>
55 55
 		<p class="settings-hint"><?php p($l->t('It is important to set up this server to be able to send emails, like for password reset and notifications.')); ?></p>
56 56
 		<p><span id="mail_settings_msg" class="msg"></span></p>
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 						$selected = 'selected="selected"';
65 65
 					endif; ?>
66 66
 					<option value="<?php p($smtpmode[0])?>" <?php p($selected) ?>><?php p($smtpmode[1]) ?></option>
67
-				<?php endforeach;?>
67
+				<?php endforeach; ?>
68 68
 			</select>
69 69
 
70 70
 			<label id="mail_smtpsecure_label" for="mail_smtpsecure"
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 						$selected = 'selected="selected"';
84 84
 					endif; ?>
85 85
 					<option value="<?php p($secure)?>" <?php p($selected) ?>><?php p($name) ?></option>
86
-				<?php endforeach;?>
86
+				<?php endforeach; ?>
87 87
 			</select>
88 88
 
89 89
 			<label id="mail_sendmailmode_label" for="mail_sendmailmode" class="<?= $_['mail_smtpmode'] !== 'sendmail' ? 'hidden' : '' ?>">
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 			<select name="mail_sendmailmode" id="mail_sendmailmode" class="<?= $_['mail_smtpmode'] !== 'sendmail' ? 'hidden' : '' ?>">
93 93
 				<?php foreach ($mail_sendmailmode as $sendmailmodeValue => $sendmailmodeLabel): ?>
94 94
 					<option value="<?php p($sendmailmodeValue)?>" <?= $sendmailmodeValue === $_['mail_sendmailmode'] ? 'selected="selected"' : '' ?>><?php p($sendmailmodeLabel) ?></option>
95
-				<?php endforeach;?>
95
+				<?php endforeach; ?>
96 96
 			</select>
97 97
 		</p>
98 98
 
Please login to merge, or discard this patch.
lib/private/Mail/Mailer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 		$debugMode = $this->config->getSystemValue('mail_smtpdebug', false);
180 180
 
181 181
 		if (!($message instanceof Message)) {
182
-			throw new InvalidArgumentException('Object not of type ' . Message::class);
182
+			throw new InvalidArgumentException('Object not of type '.Message::class);
183 183
 		}
184 184
 
185 185
 		if (empty($message->getFrom())) {
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 
193 193
 		try {
194 194
 			$message->setRecipients();
195
-		} catch (InvalidArgumentException|RfcComplianceException $e) {
195
+		} catch (InvalidArgumentException | RfcComplianceException $e) {
196 196
 			$logMessage = sprintf(
197 197
 				'Could not send mail to "%s" with subject "%s" as validation for address failed',
198 198
 				print_r(array_merge($message->getTo(), $message->getCc(), $message->getBcc()), true),
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 			$recipients = array_merge($message->getTo(), $message->getCc(), $message->getBcc());
203 203
 			$failedRecipients = [];
204 204
 
205
-			array_walk($recipients, function ($value, $key) use (&$failedRecipients) {
205
+			array_walk($recipients, function($value, $key) use (&$failedRecipients) {
206 206
 				if (is_numeric($key)) {
207 207
 					$failedRecipients[] = $value;
208 208
 				} else {
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 			$recipients = array_merge($message->getTo(), $message->getCc(), $message->getBcc());
225 225
 			$failedRecipients = [];
226 226
 
227
-			array_walk($recipients, function ($value, $key) use (&$failedRecipients) {
227
+			array_walk($recipients, function($value, $key) use (&$failedRecipients) {
228 228
 				if (is_numeric($key)) {
229 229
 					$failedRecipients[] = $value;
230 230
 				} else {
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 		$mailSmtpsecure = ($this->config->getSystemValue('mail_smtpsecure', null) === 'ssl') ? true : null;
295 295
 		$transport = new EsmtpTransport(
296 296
 			$this->config->getSystemValue('mail_smtphost', '127.0.0.1'),
297
-			(int)$this->config->getSystemValue('mail_smtpport', 25),
297
+			(int) $this->config->getSystemValue('mail_smtpport', 25),
298 298
 			$mailSmtpsecure,
299 299
 			null,
300 300
 			$this->logger
@@ -360,6 +360,6 @@  discard block
 block discarded – undo
360 360
 				break;
361 361
 		}
362 362
 
363
-		return new SendmailTransport($binaryPath . $binaryParam, null, $this->logger);
363
+		return new SendmailTransport($binaryPath.$binaryParam, null, $this->logger);
364 364
 	}
365 365
 }
Please login to merge, or discard this patch.
lib/private/Mail/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 			return [];
90 90
 		}
91 91
 
92
-		array_walk($addresses, function ($readableName, $email) use (&$convertedAddresses) {
92
+		array_walk($addresses, function($readableName, $email) use (&$convertedAddresses) {
93 93
 			if (is_numeric($email)) {
94 94
 				$convertedAddresses[] = new Address($readableName);
95 95
 			} else {
Please login to merge, or discard this patch.