YetiForceCompany/YetiForceCRM

View on GitHub
modules/Calendar/models/ListView.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Call to method setField from undeclared class \App\QueryGenerator (Did you mean class \Tests\App\QueryGenerator)
Open

        $queryGenerator->setField('visibility')->setField('assigned_user_id')->setField('activitystatus');
Severity: Critical
Found in modules/Calendar/models/ListView.php by phan

Call to method setConcatColumn from undeclared class \App\QueryGenerator (Did you mean class \Tests\App\QueryGenerator)
Open

        $queryGenerator->setConcatColumn('date_start', "CONCAT(vtiger_activity.date_start, ' ', vtiger_activity.time_start)");
Severity: Critical
Found in modules/Calendar/models/ListView.php by phan

Call to method setConcatColumn from undeclared class \App\QueryGenerator (Did you mean class \Tests\App\QueryGenerator)
Open

        $queryGenerator->setConcatColumn('due_date', "CONCAT(vtiger_activity.due_date, ' ', vtiger_activity.time_end)");
Severity: Critical
Found in modules/Calendar/models/ListView.php by phan

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

class Calendar_ListView_Model extends Vtiger_ListView_Model

The class Calendar_ListView_Model is not named in CamelCase.
Open

class Calendar_ListView_Model extends Vtiger_ListView_Model
{
    /**
     * Function to get the list view entries.
     *
Severity: Minor
Found in modules/Calendar/models/ListView.php by phpmd

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

        $queryGenerator->setConcatColumn('date_start', "CONCAT(vtiger_activity.date_start, ' ', vtiger_activity.time_start)");

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

     *

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

     * @param Vtiger_Paging_Model $pagingModel

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

        $queryGenerator->setField('visibility')->setField('assigned_user_id')->setField('activitystatus');

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

     * Function to get the list view entries.

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

    public function getListViewEntries(Vtiger_Paging_Model $pagingModel)

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

        $queryGenerator->setConcatColumn('due_date', "CONCAT(vtiger_activity.due_date, ' ', vtiger_activity.time_end)");

Line exceeds 120 characters; contains 126 characters
Open

        $queryGenerator->setConcatColumn('date_start', "CONCAT(vtiger_activity.date_start, ' ', vtiger_activity.time_start)");

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

     * @return array - Associative array of record id mapped to Vtiger_Record_Model instance

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

     */

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

        $queryGenerator = $this->getQueryGenerator();

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

        return parent::getListViewEntries($pagingModel);

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

    {

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

    }

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

class Calendar_ListView_Model extends Vtiger_ListView_Model

There are no issues that match your filters.

Category
Status