Function embedImageAttachments
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
public function embedImageAttachments(): void
{
$fetchedHtml = $this->__get('textHtml');
\preg_match_all("/\bcid:[^'\"\s]{1,256}/mi", $fetchedHtml, $matches);
Function replaceInternalLinks
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
public function replaceInternalLinks(string $baseUri): string
{
$baseUri = \rtrim($baseUri, '\\/').'/';
$fetchedHtml = $this->textHtml;
$search = [];
Function __get
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
public function __get(string $name): string
{
$type = false;
if ('textPlain' == $name) {
$type = DataPartInfo::TEXT_PLAIN;
There are no issues that match your filters.