e107_handlers/mail_manager_class.php
Avoid deeply nested control flow statements. Open
Open
if (e107::callMethod($cls, 'bounce', $bounceInfo) === false)
{
e107::getLog()->add($plug . ' bounce process failed', $bounceInfo, E_LOG_FATAL, 'BOUNCE', LOG_TO_ROLLING);
}
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return LAN_MAILOUT_214;
Avoid too many return
statements within this method. Open
Open
return LAN_MAILOUT_215;
Avoid too many return
statements within this method. Open
Open
return LAN_MAILOUT_214;
Avoid too many return
statements within this method. Open
Open
return LAN_MAILOUT_217;
Avoid too many return
statements within this method. Open
Open
return LAN_MAILOUT_216 . ' (' . $status . ')'; // General coding error
Return type of selectEmails()
is undeclared type \handle
Open
Open
public function selectEmails($count = 1)
- Exclude checks
Suspicious array access to bool
Open
Open
if ($counters['add'] == 0)
- Exclude checks
Invalid operator: left operand of -
is null
(expected number) Open
Open
$targetData['mail_status'] = max($targetData['mail_status'] - 1, MAIL_STATUS_PENDING); // One off retry count
- Exclude checks
Return type of saveEmail()
is undeclared type \mail
Open
Open
public function saveEmail($emailData, $isNew = false)
- Exclude checks
Saw a token Phan may have failed to parse after '* @return bool|array| - TRUE on success, FALSE on failure':
after bool|array,
saw '|'
Open
Open
* @return bool|array| - TRUE on success, FALSE on failure
- Exclude checks
Invalid offset "mail_source_id"
of array type array{}
Open
Open
if ($this->currentBatchInfo['mail_source_id'] != $email['mail_source_id'])
- Exclude checks
Returning type bool|int
but selectTargetStatus()
is declared to return \Returns
Open
Open
return $result;
- Exclude checks
Reference to undeclared property \e107Email->AltBody
Open
Open
print_a($this->mailer->AltBody);
- Exclude checks
Invalid offset "mail_status"
of array type array{}
Open
Open
$targetData['mail_status'] = max($targetData['mail_status'] - 1, MAIL_STATUS_PENDING); // One off retry count
- Exclude checks
Invalid offset "mail_status"
of array type array{}
Open
Open
if ($targetData['mail_status'] > MAIL_STATUS_PENDING)
- Exclude checks
Invalid operator: unary operand of (expr)--
is \handle|true
(expected int or string or float) Open
Open
$count--;
- Exclude checks
Return type of selectTargetStatus()
is undeclared type \Returns
Open
Open
public function selectTargetStatus($handle, $start = 0, $count = 0, $fields = '*', $filters = false, $orderField = 'mail_target_id', $sortOrder = 'asc')
- Exclude checks
Assigning array
to property but \e107MailManager->mailOverrides
is false
Open
Open
$this->mailOverrides = $overrides;
- Exclude checks
Invalid operator: unary operand of (expr)--
is false
(expected int or string or float) Open
Open
$this->queryActive--;
- Exclude checks
Return type of selectEmailStatus()
is undeclared type \Returns
Open
Open
public function selectEmailStatus($start = 0, $count = 0, $fields = '*', $filters = false, $orderField = 'mail_source_id', $sortOrder = 'asc')
- Exclude checks
Assigning array{mailer:mixed}
to property but \e107MailManager->mailOverrides
is false
Open
Open
$this->mailOverrides = $overrides;
- Exclude checks
Reference to undeclared property \e107Email->Body
Open
Open
print_a($this->mailer->Body);
- Exclude checks
Returning type bool|int
but selectEmailStatus()
is declared to return \Returns
Open
Open
return $result;
- Exclude checks
Returning type array<string></string>
but mailRetrieveCounters()
is declared to return bool
Open
Open
return $this->mailCounters[$handle];
- Exclude checks