YetiForceCompany/YetiForceCRM

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

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Call to undeclared method \Settings_Vtiger_Module_Model::getCreateRecordUrl
Open

                'linkdata' => ['url' => $moduleModel->getCreateRecordUrl()],

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

class Settings_MeetingServices_ListView_Model extends Settings_Vtiger_ListView_Model

The class Settings_MeetingServices_ListView_Model is not named in CamelCase.
Open

class Settings_MeetingServices_ListView_Model extends Settings_Vtiger_ListView_Model
{
    /** {@inheritdoc} */
    public function getBasicLinks()
    {

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

        $basicLinks = [];

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

    }

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

    {

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

                'linklabel' => 'LBL_ADD_RECORD',

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

        if ($moduleModel->hasCreatePermissions()) {

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

                'linkclass' => 'btn-light js-add-record-modal',

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

            $basicLinks[] = [

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

                'linkdata' => ['url' => $moduleModel->getCreateRecordUrl()],

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

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

class Settings_MeetingServices_ListView_Model extends Settings_Vtiger_ListView_Model

There are no issues that match your filters.

Category
Status