e107inc/e107

View on GitHub
e107_handlers/mail_template_class.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Assigning array<string>|array{email_body:mixed,email_overrides:'',email_header:'',email_footer:'',email_plainText:''}|array{email_overrides:'',email_header:'',email_body:'',email_footer:'',email_plainText:''}</string> to property but \e107MailTemplate->lastTemplateData is false
Open

        $this->lastTemplateData = $ret;
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Assigning '' to property but \e107MailTemplate->altBodyText is false
Open

            $this->altBodyText = '';
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Suspicious array access to false
Open

            $this->altBodyText = $tp->parseTemplate(str_replace('{BODY}', $text, $this->lastTemplateData['email_plainText']), TRUE);
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Assigning array to property but \e107MailTemplate->lastTemplateData is false
Open

            $this->lastTemplateData = $newTemplate;
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Suspicious array access to false
Open

            $mailFooter = $tp->parseTemplate($this->lastTemplateData['email_footer'], TRUE);
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Argument 3 (subject) is ?string but \str_replace() takes array|string
Open

            $mailBody = str_replace("src='".e_HTTP, "src='".SITEURL, $mailBody);
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Assigning string to property but \e107MailTemplate->mainBodyText is false
Open

            $this->mainBodyText = $temp;
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Suspicious array access to false
Open

        if ($this->lastTemplateData['email_plainText'])
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Suspicious array access to false
Open

            if ($this->lastTemplateData['template_name'] == $templateName)
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Suspicious array access to false
Open

            $mailBody = $tp->parseTemplate(str_replace('{BODY}', $text, $this->lastTemplateData['email_body']), TRUE);
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Suspicious array access to false
Open

        $this->lastTemplateData['template_name'] = $templateName;        // Cache template
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Suspicious array access to false
Open

        $format = $this->lastTemplateData['template_name'];
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Assigning array<string></string> to property but \e107MailTemplate->lastTemplateData is false
Open

        $this->lastTemplateData['template_name'] = $templateName;        // Cache template
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Assigning ?string|?string[] to property but \e107MailTemplate->mainBodyText is false
Open

        $this->mainBodyText = $mailBody;
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Assigning '' to property but \e107MailTemplate->altBodyText is false
Open

        $this->altBodyText = '';
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Assigning string to property but \e107MailTemplate->altBodyText is false
Open

            $this->altBodyText = $tp->parseTemplate(str_replace('{BODY}', $text, $this->lastTemplateData['email_plainText']), TRUE);
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Default value for string $extraFile can't be false
Open

    public function loadTemplateInfo($templateName, $extraFile = FALSE)
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

Suspicious array access to false
Open

            $mailHeader = $tp->parseTemplate($this->lastTemplateData['email_header'], TRUE);
Severity: Minor
Found in e107_handlers/mail_template_class.php by phan

There are no issues that match your filters.

Category
Status