e107inc/e107

View on GitHub
e107_plugins/pm/e_cron.php

Summary

Maintainability
A
0 mins
Test Coverage
F
4%

Return type of logLine() is undeclared type \none
Open

    function logLine($logText, $closeAfter = FALSE, $addTimeDate = FALSE)
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Assigning null to property but \pm_cron->logHandle is false|resource
Open

            $this->logHandle = NULL;
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Reference to undeclared property \pm_cron->startTime
Open

        $this->startTime = mktime(0, 0, 0, date('n'), date('d'), date('Y'));    // Date for start processing
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Argument 6 (year) is string but \mktime() takes int
Open

        $this->startTime = mktime(0, 0, 0, date('n'), date('d'), date('Y'));    // Date for start processing
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Return type of processPM() is undeclared type \none
Open

    public function processPM()
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Argument 4 (mon) is string but \mktime() takes int
Open

        $this->startTime = mktime(0, 0, 0, date('n'), date('d'), date('Y'));    // Date for start processing
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Returning type void but logLine() is declared to return \none
Open

                return; 
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Returning type true but processPM() is declared to return \none
Open

        return TRUE;
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Argument 5 (day) is string but \mktime() takes int
Open

        $this->startTime = mktime(0, 0, 0, date('n'), date('d'), date('Y'));    // Date for start processing
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Method \pm_cron::logLine is declared to return \none but has no return value
Open

    function logLine($logText, $closeAfter = FALSE, $addTimeDate = FALSE)
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

Returning type void but logLine() is declared to return \none
Open

        if ($this->logRequirement == 0) return;
Severity: Minor
Found in e107_plugins/pm/e_cron.php by phan

There are no issues that match your filters.

Category
Status