XoopsModules25x/xoopsinfo

View on GitHub
phpsysinfo/includes/output/class.Template.inc.php

Summary

Maintainability
A
0 mins
Test Coverage

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class Template

The property $_vars is not named in camelCase.
Open

class Template
{
    /**
     * Vars used in the template
     *

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $_file is not named in camelCase.
Open

class Template
{
    /**
     * Vars used in the template
     *

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

Incorrect spacing between default value and equals sign for argument "$file"; expected 1 but found 0
Open

    public function __construct($file=null)

Property name "$_vars" should not be prefixed with an underscore to indicate visibility
Open

    private $_vars;

Incorrect spacing between default value and equals sign for argument "$file"; expected 1 but found 0
Open

    public function fetch($file=null)

Property name "$_file" should not be prefixed with an underscore to indicate visibility
Open

    private $_file;

Incorrect spacing between argument "$file" and equals sign; expected 1 but found 0
Open

    public function fetch($file=null)

Incorrect spacing between argument "$file" and equals sign; expected 1 but found 0
Open

    public function __construct($file=null)

Line exceeds 120 characters; contains 132 characters
Open

 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version

Line exceeds 120 characters; contains 132 characters
Open

 * @license   http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version

There are no issues that match your filters.

Category
Status