CORE-POS/Common-Bundle

View on GitHub

Showing 1,039 of 1,039 total issues

The property $onload_commands is not named in camelCase.
Open

class CorePage 
{
    public $description = "
    Base class for creating HTML pages.
    ";
Severity: Minor
Found in src/ui/CorePage.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

The parameter $file_url is not named in camelCase.
Open

    protected function addFirstScript($file_url, $type='text/javascript')
    {
        $new = array($file_url => $type);
        foreach ($this->scripts as $url => $t) {
            $new[$url] = $t;
Severity: Minor
Found in src/ui/CorePage.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The property $default_db is not named in camelCase.
Open

class SQLManager 
{
    private $QUERY_LOG; 

    /** Array of connections **/
Severity: Minor
Found in src/SQLManager.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

The property $error_text is not named in camelCase.
Open

class CorePage 
{
    public $description = "
    Base class for creating HTML pages.
    ";
Severity: Minor
Found in src/ui/CorePage.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

The property $__models is not named in camelCase.
Open

class CoreRESTfulRouter 
{
    protected $__method = '';

    protected $__models = array();
Severity: Minor
Found in src/ui/CoreRESTfulRouter.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

The property $page_set is not named in camelCase.
Open

class CorePage 
{
    public $description = "
    Base class for creating HTML pages.
    ";
Severity: Minor
Found in src/ui/CorePage.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

The parameter $which_connection is not named in camelCase.
Open

    private function getNamedConnection($which_connection)
    {
        $which_connection = ($which_connection === '') ? $this->default_db : $which_connection;
        return isset($this->connections[$which_connection]) ? $this->connections[$which_connection] : null;
    }
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $which_connection is not named in camelCase.
Open

    protected function failedQueryMsg($query_text, $params, $which_connection)
    {
        if (is_array($query_text)) {
            $query_text = $query_text[0];
        }
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $result_object is not named in camelCase.
Open

    public function num_rows($result_object,$which_connection='')
    {
        return $this->numRows($result_object, $which_connection);
    }
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $which_connection is not named in camelCase.
Open

    public function numFields($result_object,$which_connection='')
    {
        if ($which_connection == '') {
            $which_connection = $this->default_db;
        }
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $which_connection is not named in camelCase.
Open

    public function fetch_row($result_object,$which_connection='')
    {
        return $this->fetchArray($result_object,$which_connection);
    }
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $which_connection is not named in camelCase.
Open

    public function convert($expr,$type,$which_connection='')
    {
        $which_connection = $which_connection === '' ? $this->default_db : $which_connection;
        $adapter = $this->getAdapter($this->connectionType($which_connection));
        return $adapter->convert($expr, $type);
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The property $unmapped_files is not named in camelCase.
Open

class CorePlugin 
{
    /**
      Desired settings. These are automatically exposed
      on the 'Plugins' area of the install page and
Severity: Minor
Found in src/CorePlugin.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

The parameter $which_connection is not named in camelCase.
Open

    public function num_rows($result_object,$which_connection='')
    {
        return $this->numRows($result_object, $which_connection);
    }
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $which_connection is not named in camelCase.
Open

    public function now($which_connection='')
    {
        if ($which_connection == '') {
            $which_connection = $this->default_db;
        }
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $which_connection is not named in camelCase.
Open

    public function rollbackTransaction($which_connection='')
    {
        if ($which_connection == '') {
            $which_connection = $this->default_db;
        }
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $insert_query is not named in camelCase.
Open

    public function transfer($source_db,$select_query,$dest_db,$insert_query)
    {
        $result = $this->query($select_query,$source_db);
        if (!$result) {
            return false;
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $result_object is not named in camelCase.
Open

    public function fetch_array($result_object,$which_connection='')
    {
        return $this->fetchArray($result_object, $which_connection);
    }
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $which_connection is not named in camelCase.
Open

    public function commitTransaction($which_connection='')
    {
        if ($which_connection == '') {
            $which_connection = $this->default_db;
        }
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $select_query is not named in camelCase.
Open

    public function transfer($source_db,$select_query,$dest_db,$insert_query)
    {
        $result = $this->query($select_query,$source_db);
        if (!$result) {
            return false;
Severity: Minor
Found in src/SQLManager.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

Severity
Category
Status
Source
Language