CI #60
Annotations
8 warnings
src/DI/MailExtension.php#L92
Escaped Mutant for Mutator "FalseValue":
@@ @@
if ($config->debug->cleanup !== null) {
$mailerDefinition->addSetup('setAutoCleanup', [new Literal('new ' . DateTimeImmutable::class . '(\'' . $config->debug->cleanup . '\')')]);
}
- $this->panelDefinition = $builder->addDefinition($this->prefix('tracy.panel'))->setFactory(MailPanel::class, ['mailer' => $mailerDefinition, 'tempDir' => $config->debug->tempDir])->setAutowired(false);
+ $this->panelDefinition = $builder->addDefinition($this->prefix('tracy.panel'))->setFactory(MailPanel::class, ['mailer' => $mailerDefinition, 'tempDir' => $config->debug->tempDir])->setAutowired(true);
}
public static function setupTracyMailPanel(string $name, Bar $bar, MailPanel $panel): void
{
|
src/Tracy/MailPanel.php#L99
Escaped Mutant for Mutator "Foreach_":
@@ @@
{
$url = $this->request->getUrl();
$url = $url->withQueryParameter('do', self::SignalName);
- foreach ($params as $name => $value) {
+ foreach ([] as $name => $value) {
$url = $url->withQueryParameter($name, $value);
}
return $url->getAbsoluteUrl();
|
src/Tracy/MailPanel.php#L180
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
$this->renderDetail($messageId);
} elseif ($action === 'source' && is_string($messageId)) {
$this->renderSource($messageId);
- } elseif ($action === 'attachment' && is_string($messageId) && Validators::isNumericInt($attachmentId)) {
+ } elseif (($action === 'attachment' || is_string($messageId)) && Validators::isNumericInt($attachmentId)) {
$this->renderAttachment($messageId, (int) $attachmentId);
} elseif ($action === 'delete' && is_string($messageId)) {
$this->deleteById($messageId);
|
src/Tracy/MailPanel.php#L180
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
$this->renderDetail($messageId);
} elseif ($action === 'source' && is_string($messageId)) {
$this->renderSource($messageId);
- } elseif ($action === 'attachment' && is_string($messageId) && Validators::isNumericInt($attachmentId)) {
+ } elseif ($action === 'attachment' && is_string($messageId) || Validators::isNumericInt($attachmentId)) {
$this->renderAttachment($messageId, (int) $attachmentId);
} elseif ($action === 'delete' && is_string($messageId)) {
$this->deleteById($messageId);
|
src/Tracy/MailPanel.php#L182
Escaped Mutant for Mutator "Identical":
@@ @@
$this->renderSource($messageId);
} elseif ($action === 'attachment' && is_string($messageId) && Validators::isNumericInt($attachmentId)) {
$this->renderAttachment($messageId, (int) $attachmentId);
- } elseif ($action === 'delete' && is_string($messageId)) {
+ } elseif ($action !== 'delete' && is_string($messageId)) {
$this->deleteById($messageId);
} elseif ($action === 'delete') {
$this->deleteAll();
|
src/Tracy/MailPanel.php#L182
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
@@ @@
$this->renderSource($messageId);
} elseif ($action === 'attachment' && is_string($messageId) && Validators::isNumericInt($attachmentId)) {
$this->renderAttachment($messageId, (int) $attachmentId);
- } elseif ($action === 'delete' && is_string($messageId)) {
+ } elseif (!($action === 'delete') && !is_string($messageId)) {
$this->deleteById($messageId);
} elseif ($action === 'delete') {
$this->deleteAll();
|
src/Tracy/MailPanel.php#L238
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
private function deleteById(string $id): void
{
- $this->mailer->deleteById($id);
+
$this->redirectBack();
}
private function deleteAll(): void
|
src/Tracy/MailPanel.php#L244
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
private function deleteAll(): void
{
- $this->mailer->deleteAll();
+
$this->redirectBack();
}
/**
|
This job succeeded
Loading