e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Suspicious array access to nullable ?array|?array<string></string>
Open

            $text .= ">".($themelist[$counter] == $defaulttheme ? "[ ".$themelist[$counter]." ]" : $themelist[$counter]).' ('.LAN_UMENU_THEME_3.' '.$themecount[$themelist[$counter]].")</option>\n";
Severity: Minor
Found in e107_plugins/user/usertheme_menu.php by phan

Reference to instance property uapi from undeclared class \cpanelAPI
Open

                $cPanel->uapi->Mysql->delete_database(['name' => $db['db']]);

Argument 2 (fname) is false but \e107::lan() takes string defined at /code/e107_handlers/e107_class.php:3987
Open

e107::lan('social',false, true);
Severity: Minor
Found in e107_plugins/social/fb_like_menu.php by phan

Reference to undeclared property \tagcloud_menu->template
Open

$end = $tag->template['end'];

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

        $text .= $frm->text('bbcodeValue','',false,'size=xlarge');

Argument 2 (use_include_path) is null but \file_get_contents() takes bool
Open

            $content = file_get_contents($f['path'].$f['fname'], null, null, null, 140);

Variable $label was undeclared, but array fields are being added to it.
Open

            $label[] = "'".date("D",$unix)."'";
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

Saw an @param annotation for when, but it was not found in the param list of function registered(string $id = null) : string
Open

     * @param string $when
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

Variable $dateName was undeclared, but array fields are being added to it.
Open

            $dateName[$diz] = date('jS', $row['user_join']);
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

Argument 1 (message) is int but \e107_db_debug::log() takes array|string defined at /code/e107_handlers/db_debug_class.php:1116
Open

        e107::getDebug()->log($this->mailCount);
Severity: Minor
Found in e107_plugins/user/e_mailout.php by phan

Reference to instance property api2 from undeclared class \cpanelAPI
Open

                $cPanel->api2->Fileman->fileop(['op' => 'unlink', 'sourcefiles' => self::TARGET_RELPATH.$questionable_filename]);

Argument 3 (default) is '' but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

        $hashtags = e107::pref('social','sharing_hashtags','');
Severity: Minor
Found in e107_plugins/social/e_shortcode.php by phan

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

            $butSize .= $frm->radio('buttonSize', $size, $selected, array('label'=>$label));    

Suspicious attempt to unset an offset of a value of type false|string
Open

        unset($config['@attributes']);

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

            $diz = date('D jS', mktime(1,1,1,$monthNumber,$i, $yearNumber));
Severity: Minor
Found in e107_plugins/user/e_dashboard.php by phan

Variable $ticks was undeclared, but array fields are being added to it.
Open

            $ticks[] = $i;
Severity: Info
Found in e107_plugins/user/e_dashboard.php by phan

Reference to undeclared property \user_mailout->mail_count (Did you mean expr->mailCount)
Open

            $this->mail_count = 0;
Severity: Minor
Found in e107_plugins/user/e_mailout.php by phan

Call to method __construct from undeclared class \PHPUnit\Framework\SkippedTestError
Open

        throw new \PHPUnit\Framework\SkippedTestError("Test wants \"$relative_path\" to be deleted from the app, ".
Severity: Critical
Found in e107_tests/lib/deployers/Deployer.php by phan

Reference to instance property uapi from undeclared class \cpanelAPI
Open

        $cPanel->uapi->Fileman->save_file_content(['dir' => $homedir, 'file' => 'acceptance_tests.status.txt', 'content' => $acceptance_tests_json]);

Method \bootstrap3_admintheme::init is declared to return mixed but has no return value
Open

    public function init()
Severity: Minor
Found in e107_themes/bootstrap3/admin_theme.php by phan
Severity
Category
Status
Source
Language