XoopsModules25x/apcal

View on GitHub
class/cssParser.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 cssParser
Severity: Minor
Found in class/cssParser.php by phpcodesniffer

The class cssParser is not named in CamelCase.
Open

class cssParser
{
    public $_css = '';

    /**
Severity: Minor
Found in class/cssParser.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

The property $_css is not named in camelCase.
Open

class cssParser
{
    public $_css = '';

    /**
Severity: Minor
Found in class/cssParser.php by phpmd

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

    public $_css = '';
Severity: Minor
Found in class/cssParser.php by phpcodesniffer

Line exceeds 120 characters; contains 152 characters
Open

            return '#' . (strlen($match[3]) == 3 ? $match[3][0] . $match[3][0] . $match[3][1] . $match[3][1] . $match[3][2] . $match[3][2] : $match[3]);
Severity: Minor
Found in class/cssParser.php by phpcodesniffer

Class name "cssParser" is not in camel caps format
Open

class cssParser
Severity: Minor
Found in class/cssParser.php by phpcodesniffer

There are no issues that match your filters.

Category
Status