e107inc/e107

View on GitHub
e107_plugins/poll/poll_class.php

Summary

Maintainability
A
0 mins
Test Coverage
F
8%

Variable $POLL_VOTED_LOOP is undeclared
Open

            $template['results']['item'] = $POLL_VOTED_LOOP;
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Argument 3 (event_type) is '' but \e_admin_log::add() takes int defined at /code/e107_handlers/admin_log_class.php:178
Open

                e107::getLog()->add('POLL_03','ID: '.$ret.' - '.$poll_title,'');        // Intentionally only log admin-entered polls
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

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

        $active_end        = (!$_POST['endmonth'] || !$_POST['endday'] || !$_POST['endyear'] ? 0 : mktime (0, 0, 0, $_POST['endmonth'], $_POST['endday'], $_POST['endyear']));
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Argument 3 (event_type) is '' but \e_admin_log::add() takes int defined at /code/e107_handlers/admin_log_class.php:178
Open

            e107::getLog()->add('POLL_01',POLLAN_3.': '.LAN_DELETED.': '.$existing,'');
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

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

        $active_start    = (!$_POST['startmonth'] || !$_POST['startday'] || !$_POST['startyear'] ? 0 : mktime (0, 0, 0, $_POST['startmonth'], $_POST['startday'], $_POST['startyear']));
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Variable $POLL_VOTED_END is undeclared
Open

            $template['results']['end'] = $POLL_VOTED_END;
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Variable $POLL_NOTVOTED_LOOP is undeclared
Open

            $template['form']['item'] = $POLL_NOTVOTED_LOOP;
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Variable $POLL_DISALLOWED_END is undeclared
Open

            $template['denied']['end'] = $POLL_DISALLOWED_END ;
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Static call to non-static method \poll::clean_poll_array defined at /code/e107_plugins/poll/poll_class.php:104
Open

        $pollOption = array_filter($pollOption, 'poll::clean_poll_array');
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Variable $POLL_NOTVOTED_END is undeclared
Open

            $template['form']['end'] =     $POLL_NOTVOTED_END;
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Variable $POLL_VOTED_START is undeclared (Did you mean $POLL_NOTVOTED_START)
Open

            $template['results']['start'] = $POLL_VOTED_START;
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Argument 4 (options) is array{label:array{}} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2942
Open

            return $frm->radio('votea', $this->answerCount,false, $opt);
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Argument 3 (event_type) is '' but \e_admin_log::add() takes int defined at /code/e107_handlers/admin_log_class.php:178
Open

            e107::getLog()->add('POLL_02','ID: '.$pollID.' - '.$poll_title,'');
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Variable $POLL_DISALLOWED_START is undeclared
Open

            $template['denied']['start'] = $POLL_DISALLOWED_START;
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Variable $POLL_DISALLOWED_LOOP is undeclared
Open

            $template['denied']['item'] = $POLL_DISALLOWED_LOOP ;
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

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

        $active_end        = (!$_POST['endmonth'] || !$_POST['endday'] || !$_POST['endyear'] ? 0 : mktime (0, 0, 0, $_POST['endmonth'], $_POST['endday'], $_POST['endyear']));
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

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

        $active_start    = (!$_POST['startmonth'] || !$_POST['startday'] || !$_POST['startyear'] ? 0 : mktime (0, 0, 0, $_POST['startmonth'], $_POST['startday'], $_POST['startyear']));
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

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

        $active_start    = (!$_POST['startmonth'] || !$_POST['startday'] || !$_POST['startyear'] ? 0 : mktime (0, 0, 0, $_POST['startmonth'], $_POST['startday'], $_POST['startyear']));
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Call to undeclared method \e_db::db_getList
Open

                    $deacArray = $sql->db_getList();
Severity: Critical
Found in e107_plugins/poll/poll_class.php by phan

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

        $active_end        = (!$_POST['endmonth'] || !$_POST['endday'] || !$_POST['endyear'] ? 0 : mktime (0, 0, 0, $_POST['endmonth'], $_POST['endday'], $_POST['endyear']));
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

There are no issues that match your filters.

Category
Status