XoopsModules25x/xoopsinfo

View on GitHub
phpsysinfo/includes/to/device/class.NetDevice.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 NetDevice

The property $_rxBytes is not named in camelCase.
Open

class NetDevice
{
    /**
     * name of the device
     *

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 $_txBytes is not named in camelCase.
Open

class NetDevice
{
    /**
     * name of the device
     *

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 $_errors is not named in camelCase.
Open

class NetDevice
{
    /**
     * name of the device
     *

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 $_info is not named in camelCase.
Open

class NetDevice
{
    /**
     * name of the device
     *

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 $_drops is not named in camelCase.
Open

class NetDevice
{
    /**
     * name of the device
     *

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 $_name is not named in camelCase.
Open

class NetDevice
{
    /**
     * name of the device
     *

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

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

    private $_name = "";

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

    private $_errors = 0;

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

    private $_drops = 0;

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

    private $_txBytes = 0;

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

    private $_rxBytes = 0;

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

    private $_info = 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