YetiForceCompany/YetiForceCRM

View on GitHub
modules/Vtiger/widgets/UpdatesList.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Invalid offset "data" of array type array{}
Open

        $fieldName = $this->Config['data']['field_name'];
Severity: Minor
Found in modules/Vtiger/widgets/UpdatesList.php by phan

Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

        $this->Config['url'] = 'module=' . $this->Module . '&view=Detail&record=' . $this->Record . '&mode=showModTrackerByField&field=' . $fieldName;
Severity: Minor
Found in modules/Vtiger/widgets/UpdatesList.php by phan

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

class Vtiger_UpdatesList_Widget extends Vtiger_Basic_Widget

The class Vtiger_UpdatesList_Widget is not named in CamelCase.
Open

class Vtiger_UpdatesList_Widget extends Vtiger_Basic_Widget
{
    /** {@inheritdoc} */
    public function getWidget()
    {

CamelCaseClassName

Since: 0.2

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

Example

class class_name {
}

Source

Spaces must be used to indent lines; tabs are not allowed
Open

        return $this->Config;

Spaces must be used to indent lines; tabs are not allowed
Open

        if (\is_array($fieldName)) {

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->Config['url'] = 'module=' . $this->Module . '&view=Detail&record=' . $this->Record . '&mode=showModTrackerByField&field=' . $fieldName;

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getConfigTplName()

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

            $fieldName = current($fieldName);

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        }

Spaces must be used to indent lines; tabs are not allowed
Open

    /** {@inheritdoc} */

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getWidget()

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->Config['tpl'] = 'UpdatesList.tpl';

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

        $fieldName = $this->Config['data']['field_name'];

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

        return 'UpdatesListConfig';

Line exceeds 120 characters; contains 150 characters
Open

        $this->Config['url'] = 'module=' . $this->Module . '&view=Detail&record=' . $this->Record . '&mode=showModTrackerByField&field=' . $fieldName;

Spaces must be used to indent lines; tabs are not allowed
Open

    /** {@inheritdoc} */

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

class Vtiger_UpdatesList_Widget extends Vtiger_Basic_Widget

There are no issues that match your filters.

Category
Status