XoopsModules25x/xoopsinfo

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

The property $_name is not named in camelCase.
Open

class SensorDevice
{
    /**
     * name of the sensor
     *

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

class SensorDevice
{
    /**
     * name of the sensor
     *

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

class SensorDevice
{
    /**
     * name of the sensor
     *

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

class SensorDevice
{
    /**
     * name of the sensor
     *

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

class SensorDevice
{
    /**
     * name of the sensor
     *

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 "$_min" should not be prefixed with an underscore to indicate visibility
Open

    private $_min = null;

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

    private $_name = "";

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

    private $_event = "";

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

    private $_value = 0;

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

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