e107inc/e107

View on GitHub
e107_handlers/e_render_class.php

Summary

Maintainability
A
0 mins
Test Coverage
C
73%

Invalid offset 0 of array type array{}
Open

                return $this->mainRenders[0]['caption'];
Severity: Minor
Found in e107_handlers/e_render_class.php by phan

Invalid offset 0 of array type array{}
Open

                return $this->mainRenders[0];
Severity: Minor
Found in e107_handlers/e_render_class.php by phan

When appending to a value of type array<string>&gt;|array<string>|array<string>|array{},</string></string></string> found an array access index of type ?'_generic_'|?array|?string|?string[], but expected the index to be of type int|string
Open

            $this->content[$key][$type] = (string) $val;
Severity: Minor
Found in e107_handlers/e_render_class.php by phan

Returning type null but getMainRender() is declared to return array
Open

                return $this->mainRenders[0];
Severity: Minor
Found in e107_handlers/e_render_class.php by phan

Returning type false|string but tablerender() is declared to return null
Open

                return ob_get_clean();
Severity: Minor
Found in e107_handlers/e_render_class.php by phan

Returning type string but getContent() is declared to return array
Open

            return $this->content[$key][$type];
Severity: Minor
Found in e107_handlers/e_render_class.php by phan

When appending to a value of type array<string>&gt;|array<string>|array{},</string></string> found an array access index of type ?'_generic_'|?array|?string|?string[], but expected the index to be of type int|string
Open

            $this->content[$key][$type] = (string) $val;
Severity: Minor
Found in e107_handlers/e_render_class.php by phan

Returning type '' but tablerender() is declared to return null
Open

            return '';
Severity: Minor
Found in e107_handlers/e_render_class.php by phan

Returning type '' but tablerender() is declared to return null
Open

                    return '';
Severity: Minor
Found in e107_handlers/e_render_class.php by phan

Argument 2 (val) is bool but \e_render::setContent() takes string defined at /code/e107_handlers/e_render_class.php:228
Open

            $this->setContent('list', $isList);
Severity: Minor
Found in e107_handlers/e_render_class.php by phan

When appending to a value of type array<string>|array{},</string> found an array access index of type ?'_generic_'|?array|?string|?string[], but expected the index to be of type int|string
Open

            $this->content[$key][$type] = (string) $val;
Severity: Minor
Found in e107_handlers/e_render_class.php by phan

There are no issues that match your filters.

Category
Status