e107inc/e107

View on GitHub
e107_handlers/e_ranks_class.php

Summary

Maintainability
A
0 mins
Test Coverage
B
83%

Argument #2 of this call to \strpos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
Open

        if($info['lan_pfx'] && strpos('_', $info['image']))
Severity: Minor
Found in e107_handlers/e_ranks_class.php by phan

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

                $data['special'] = "<img src='".$this->_getImage($this->ranks['special'][1])."' alt='".$this->_getName($this->ranks['special'][1])."' title='".$this->_getName($this->ranks['special'][1])."' />";
Severity: Info
Found in e107_handlers/e_ranks_class.php by phan

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

            $data['special'] = "<img src='".$this->_getImage($this->ranks['special'][3])."' alt='".$this->_getName($this->ranks['special'][3])."' title='".$this->_getName($this->ranks['special'][3])."' />";
Severity: Info
Found in e107_handlers/e_ranks_class.php by phan

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

                $data['special'] = "<img src='".$this->_getImage($this->ranks['special'][2])."' alt='".$this->_getName($this->ranks['special'][2])."' title='".$this->_getName($this->ranks['special'][2])."' />";
Severity: Info
Found in e107_handlers/e_ranks_class.php by phan

There are no issues that match your filters.

Category
Status