YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/PBX/models/ListView.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

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

class Settings_PBX_ListView_Model extends Settings_Vtiger_ListView_Model

The class Settings_PBX_ListView_Model is not named in CamelCase.
Open

class Settings_PBX_ListView_Model extends Settings_Vtiger_ListView_Model
{
    /**
     * Function to get Basic links.
     *

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

                'linktype' => 'LISTVIEWBASIC',

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

                'modalView' => true,

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

    {

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

                'linkicon' => 'fas fa-plus',

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

        return $basicLinks;

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

     */

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

            $basicLinks[] = [

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

                'linklabel' => 'LBL_ADD_RECORD',

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

                'linkdata' => ['url' => 'index.php?module=PBX&parent=Settings&view=EditModal'],

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

                'linkclass' => 'btn-light addRecord',

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

        $moduleModel = $this->getModule();

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

                'showLabel' => 1,

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 ($moduleModel->hasCreatePermissions()) {

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

     * @return array of Basic links

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

        $basicLinks = [];

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 getBasicLinks()

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

    /**

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

     * Function to get Basic links.

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

            ];

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

class Settings_PBX_ListView_Model extends Settings_Vtiger_ListView_Model

There are no issues that match your filters.

Category
Status