e107inc/e107

View on GitHub
e107_handlers/traffic_class.php

Summary

Maintainability
A
0 mins
Test Coverage
F
22%

Argument 3 (tFinish) is string but \e107_traffic::Bump() takes int defined at /code/e107_handlers/traffic_class.php:90
Open

            $tObject->Bump('TRAF_CAL1', $b, $e); // emulate the normal non-insider call
Severity: Minor
Found in e107_handlers/traffic_class.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param string time $tStart Start time - unexploded microtime result': after string, did not see an element name (will guess based on comment order)
Open

     * @param string time $tStart   Start time - unexploded microtime result
Severity: Info
Found in e107_handlers/traffic_class.php by phan

Argument 2 (str) is \time but \explode() takes string
Open

        $tFrom = explode(' ', $tStart);
Severity: Minor
Found in e107_handlers/traffic_class.php by phan

Argument 1 (tStart) is int but \e107_traffic::TimeDelta() takes string defined at /code/e107_handlers/traffic_class.php:56
Open

            $time = $this->TimeDelta($tStart, $tFinish) - $offset;
Severity: Minor
Found in e107_handlers/traffic_class.php by phan

Argument 2 (tStart) is string but \e107_traffic::Bump() takes int defined at /code/e107_handlers/traffic_class.php:90
Open

            $tObject->Bump('TRAF_CAL2', $b);
Severity: Minor
Found in e107_handlers/traffic_class.php by phan

Argument 2 (tStart) is string but \e107_traffic::Bump() takes int defined at /code/e107_handlers/traffic_class.php:90
Open

            $tObject->Bump('TRAF_CAL1', $b, $e); // emulate the normal non-insider call
Severity: Minor
Found in e107_handlers/traffic_class.php by phan

Expression may not be PHP 7 compatible
Open

            $this-> {$vName} [$sWhat] = array();
Severity: Minor
Found in e107_handlers/traffic_class.php by phan

Parameter $tStart has undeclared type \time
Open

    function TimeAbs($tStart)
Severity: Minor
Found in e107_handlers/traffic_class.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param string time $tStop Finish time - unexploded microtime result': after string, did not see an element name (will guess based on comment order)
Open

     * @param string time $tStop    Finish time - unexploded microtime result
Severity: Info
Found in e107_handlers/traffic_class.php by phan

Invalid offset "TRAF_CAL1" of array type array{}
Open

        $t = $tObject->aTrafficTimed['TRAF_CAL1'];
Severity: Minor
Found in e107_handlers/traffic_class.php by phan

Invalid offset "TRAF_CAL2" of array type array{}
Open

        $t = $tObject->aTrafficTimed['TRAF_CAL2'];
Severity: Minor
Found in e107_handlers/traffic_class.php by phan

There are no issues that match your filters.

Category
Status