e107inc/e107

View on GitHub
e107_admin/comment.php

Summary

Maintainability
A
0 mins
Test Coverage
F
29%

Assigning array{comments_engine:array{title:'Engine',type:'dropdown',writeParms:array{}},comments_disabled:array{title:'Allow users to post comments',type:'boolean',writeParms:'inverse=1'}} to property but \comments_admin_ui->prefs is array{comments_engine:array{title:'Engine',type:'dropdown',writeParms:array{}},comments_disabled:array{title:'Allow users to post comments',type:'boolean',writeParms:'inverse=1'},anon_post:array{title:'Allow anonymous posting?',type:'boolean'},comments_icon:array{title:'Display new comment icon',type:'boolean'},nested_comments:array{title:'Turn on nested comments',type:'boolean'},allowCommentEdit:array{title:'Allow posters to edit their comments',type:'boolean'},comments_emoticons:array{title:'Show emoticon images on comment form?',type:'boolean'}}
Open

                $this->prefs = array(
Severity: Minor
Found in e107_admin/comment.php by phan

Assigning array<string>}}&gt;</string> to property but \comments_admin_ui->prefs is array{comments_engine:array{title:'Engine',type:'dropdown',writeParms:array{}},comments_disabled:array{title:'Allow users to post comments',type:'boolean',writeParms:'inverse=1'},anon_post:array{title:'Allow anonymous posting?',type:'boolean'},comments_icon:array{title:'Display new comment icon',type:'boolean'},nested_comments:array{title:'Turn on nested comments',type:'boolean'},allowCommentEdit:array{title:'Allow posters to edit their comments',type:'boolean'},comments_emoticons:array{title:'Show emoticon images on comment form?',type:'boolean'}}
Open

                    $this->prefs['comments_engine']['writeParms']['optArray'][$id] = $val['name'];
Severity: Minor
Found in e107_admin/comment.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

if (!getperms("B")) 
Severity: Minor
Found in e107_admin/comment.php by phan

Assigning array<string></string> to property but \comments_admin_ui->prefs is array{comments_engine:array{title:'Engine',type:'dropdown',writeParms:array{}},comments_disabled:array{title:'Allow users to post comments',type:'boolean',writeParms:'inverse=1'},anon_post:array{title:'Allow anonymous posting?',type:'boolean'},comments_icon:array{title:'Display new comment icon',type:'boolean'},nested_comments:array{title:'Turn on nested comments',type:'boolean'},allowCommentEdit:array{title:'Allow posters to edit their comments',type:'boolean'},comments_emoticons:array{title:'Show emoticon images on comment form?',type:'boolean'}}
Open

            $this->prefs['comments_engine']['writeParms']['optArray'] = array('e107'=>'e107');
Severity: Minor
Found in e107_admin/comment.php by phan

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

                $list[$id] = e107::getComment()->getTable($id);
Severity: Info
Found in e107_admin/comment.php by phan

There are no issues that match your filters.

Category
Status