e107inc/e107

View on GitHub
e107_plugins/download/handlers/download_class.php

Summary

Maintainability
A
30 mins
Test Coverage
F
10%

Avoid too many return statements within this method.
Open

            return $this->renderError();    
Severity: Major
Found in e107_plugins/download/handlers/download_class.php - About 30 mins to fix

    Argument 2 (content) is string but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
    Open

            e107::meta('og:description',    $metaDescription);

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

            $download_sef     = $dlrow['download_sef'];

    Argument 1 (name) is 'description' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
    Open

            e107::meta('description',       $metaDescription);

    Argument 2 (content) is string but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
    Open

            e107::meta('og:image',          $metaImage);

    Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
    Open

            $sc = e107::getScBatch('download',true);

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

            if ($dlrow['download_comment']) 

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

                $comments = e107::getComment()->compose_comment("download", "comment", $dlrow['download_id'], null, $dlrow['download_name'], FALSE, true);

    Argument 1 (name) is 'og:image' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
    Open

            e107::meta('og:image',          $metaImage);

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

            $breadcrumb[]    = array('text' => $dlrow['download_name'],            'url' => e107::url('download','item', $dlrow)); 

    Argument 3 (raw) is null but \e_parse::thumbUrl() takes bool|false defined at /code/e107_handlers/e_parse_class.php:2531
    Open

            $metaImage                      = $tp->thumbUrl($row['download_image'], array('w'=>500), null, true);

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

                $comments = e107::getComment()->compose_comment("download", "comment", $dlrow['download_id'], null, $dlrow['download_name'], FALSE, true);

    Argument 2 (prefix) is false but \http_build_query() takes ?string
    Open

            $nextprev_parms  = http_build_query($nextprev,false); // 'tmpl_prefix='.deftrue('NEWS_NEXTPREV_TMPL', 'default').'&total='. $total_downloads.'&amount='.$amount.'&current='.$newsfrom.$nitems.'&url='.$url;

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

            $download_name     = $tp->toDB($dlrow['download_name']);

    Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
    Open

            $sc = e107::getScBatch('download',true);

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

            $download_name = e107::getParser()->toDB($this->rows['download_name']);

    Argument 3 (id) is null but \comment::compose_comment() takes int defined at /code/e107_handlers/comment_class.php:1056
    Open

                $comments = e107::getComment()->compose_comment("download", "comment", $dlrow['download_id'], null, $dlrow['download_name'], FALSE, true);

    Assigning '' to property but \download->templateHeader is array
    Open

                $this->templateHeader = '';

    Argument 2 (content) is string but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
    Open

            e107::meta('twitter:image:src', $metaImage);

    Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
    Open

            $sc = e107::getScBatch('download',true);

    Argument 1 (name) is 'keywords' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
    Open

            e107::meta('keywords',          $row['download_keywords']);

    Argument 3 (main_cat_load) is null but \downloadCategory::__construct() takes string defined at /code/e107_plugins/download/handlers/category_class.php:34
    Open

            $dlcat = new downloadCategory(varset($pref['download_subsub'],1),USERCLASS_LIST, null ,varset($pref['download_incinfo'],FALSE));

    Argument 1 (name) is 'twitter:image:src' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
    Open

            e107::meta('twitter:image:src', $metaImage);

    Argument 2 (content) is string but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
    Open

            e107::meta('description',       $metaDescription);

    Argument 5 (subject) is null but \comment::compose_comment() takes string defined at /code/e107_handlers/comment_class.php:1056
    Open

                $comments = e107::getComment()->compose_comment("download", "comment", $dlrow['download_id'], null, $dlrow['download_name'], FALSE, true);

    Assigning '' to property but \download->templateFooter is array
    Open

                $this->templateFooter = '';

    Argument 1 (name) is 'og:description' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
    Open

            e107::meta('og:description',    $metaDescription);

    Argument 4 (width) is null but \comment::compose_comment() takes int defined at /code/e107_handlers/comment_class.php:1056
    Open

                $comments = e107::getComment()->compose_comment("download", "comment", $dlrow['download_id'], null, $dlrow['download_name'], FALSE, true);

    Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
    Open

            $sc = e107::getScBatch('download',true);

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

                $sc_style['DOWNLOAD_LIST_NEXTPREV']['pre'] = "

    Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
    Open

            $sc = e107::getScBatch('download',true);

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

            $download_id     = (int) $dlrow['download_id'];

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

            $breadcrumb[]    = array('text' => $dlrow['download_category_name'],    'url' => e107::url('download','category', $dlrow)); 

    Call to undeclared method \e_db::db_getList
    Open

            $mirrorList = $sql->db_getList("ALL", 0, 200, "mirror_id");

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

            if(!check_class($dlrow['download_class']) || !check_class($pref['download_reportbroken']))

    Call to undeclared method \e_db::db_getList
    Open

                    $scArray = $sql->db_getList();

    There are no issues that match your filters.

    Category
    Status