YetiForceCompany/YetiForceCRM

View on GitHub
modules/Vtiger/dashboards/ServicesSoldToRenew.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Reference to undeclared property \Vtiger_ServicesSoldToRenew_Dashboard->data (Did you mean $data)
Open

        return $this->data = $data;

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

class Vtiger_ServicesSoldToRenew_Dashboard extends Vtiger_ProductsSoldToRenew_Dashboard

The class Vtiger_ServicesSoldToRenew_Dashboard is not named in CamelCase.
Open

class Vtiger_ServicesSoldToRenew_Dashboard extends Vtiger_ProductsSoldToRenew_Dashboard
{
    public function setData($data)
    {
        if (empty($data['orderby'])) {

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 ['id', 'productname', 'parent_id', 'dateinservice'];

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

    {

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

    public function setData($data)

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

    public function getConditions(): array

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

    public function getTargetFields()

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

            $data['sortorder'] = 'asc';

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

    }

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 [['ssservicesstatus', 'e', 'PLL_ACCEPTED'], ['osssoldservices_renew', 'e', 'PLL_WAITING_FOR_RENEWAL']];

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

        return $this->data = $data;

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

    public function getTargetModule()

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

    {

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

        if (empty($data['orderby'])) {

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

    public function getFieldNameToSecondButton()

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

        return 'osssoldservices_renew';

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

    {

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

            $data['orderby'] = 'dateinservice';

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

    {

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

        return 'OSSSoldServices';

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

    }

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

class Vtiger_ServicesSoldToRenew_Dashboard extends Vtiger_ProductsSoldToRenew_Dashboard

There are no issues that match your filters.

Category
Status