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:----P1jPa54rVBZcMBvxlo03CsIXCswJNS+buZ80KPhcslnts5MT/cKISTjeneHZ2Xt41If+M0Kdlozys/21yhfckk+0ET/sXyTIQTC+9idUW35oOo2vQxvzA01t+zP5PZxBa09Z6ozvvrVkXNy/ufOzw5c1zy4uZAbD1BKyhZdhhXfFtZMWuYWbG75fqT3MlJl2gU5o6oHM2kSCiULNSNTkvLzN2tcUCo33P7Y/YfFrEOlbx6ysRjQrhxzr6DQbl7Eo2hBrMUzLgCI3442rM1ZuFeqcHTQ6DiVoiNeFJWqiiN1k/dwecmi0XQGv5oLzVRNJx899Yz8Yu6xUXswW/qcymDIayrVs8YaGklSw+WQRvgqfMrB7SVMtUKxLr7niIjxYioBqdY6fDKJL1+u5GCaWUd9NP0k6ojSX6VW4Q8ToxYU38OMbSQc6cOgu0DpHZlZCQWHZi/cUVw5z92Q1HEk3DkYmPLpccbwGtixtqrrwX8vnkTqyYhWiWy2ZkmqvJq/UjWbqrtCcyU8F8s1nu5qtyEB7nFPdEDt2KfqMvf9BBB+4903bHv5YAlbsDGoLecNL/SusrzMV/nhed5whML0xLsHnEvnoUoTSLsxQXhQ04OR6kjSbpHNGTJ/fffwkNxiWBRZyOVp1B6vImO8+30BaDOZ0vBp0/8WgkZFyPgG3sh0=----ATTACHMENT:----MzU1MTc5NDQwMTkyMjY2IDg3ODAzNjM3MjI3NDY5NDYgMzAyNjcyODgxNDg2MzEwMw==