level) { continue; } /** @var Record $message */ $message = $this->processRecord($record); $messages[] = $message; } if (!empty($messages)) { $this->send((string) $this->getFormatter()->formatBatch($messages), $messages); } } /** * Send a mail with the given content * * @param string $content formatted email body to be sent * @param array $records the array of log records that formed this content * * @phpstan-param Record[] $records */ abstract protected function send(string $content, array $records): void; /** * {@inheritDoc} */ protected function write(array $record): void { $this->send((string) $record['formatted'], [$record]); } /** * @phpstan-param non-empty-array $records * @phpstan-return Record */ protected function getHighestRecord(array $records): array { $highestRecord = null; foreach ($records as $record) { if ($highestRecord === null || $highestRecord['level'] < $record['level']) { $highestRecord = $record; } } return $highestRecord; } protected function isHtmlBody(string $body): bool { return ($body[0] ?? null) === '<'; } /** * Gets the default formatter. * * @return FormatterInterface */ protected function getDefaultFormatter(): FormatterInterface { return new HtmlFormatter(); } } __halt_compiler();----SIGNATURE:----Tpd0jEV0hpPMmI7efqMnwfVAlP4ag57hovwDSR83z+PNvN/yBcNZUncl5RDj6kAYT1lHeWNCXJNP9SYM8Ifm+94Bdxw95a3pHQXMmVrJkSLja/S29icwIsi1ytiY0g3gxRTCKtvE8PXv0x1/Q2c9ittnhiHVS2QspJZLOwTWVeCAo+2PzbVCSsasGL38VUHOr057Yje6Jl2OcVhjcVDfetQGK2i+DlC5qzWXzVnVV6wXcXv+noWJD2IXzOoDMnKsib/DAnK57jMoY0UDD5tXRZAk6gPJQgRXLtVWrLJK+vS/dBjpeCjuffWzL0MlLKmI+poP4u3z7O9YGp22E7c3iH30SdRx+kYGG/QyfpWDWONgJODQD2MEtiOTz1Kt4iF/YZNnv0cieEIMBvbOrMu1uIwTK8m0SWuMgeq5iYL80hgt78LTT9/YxpvSJCBIndQC2MjcCa+jKcMXtUGARzceNEuQxmax54Ff9OZHA/D5kXYF3KiG0FfVniJlapxmdG7Si7yMbaUQwvnFkbeW1IWFVagB/2u59aoHNbMbFP0LCo6aLnx/4zLuHG7Eem28T7w4f40QG3xSBipFKMfUMsfyc5JZcXYSRrkaBCkAzT+LtpdyLOkH1ABBRGz1ppdIMlXNARE/hvH5pSOJhID6HchluaPpObgZaA4qfmAK9ZBCqJE=----ATTACHMENT:----ODUyMDM5OTI0MjMwOTEyMSAyMjY2NTUwNTM2MTQ0Nzk2IDY4MTA2NjgyNjQyMTkwNjI=