modules/ServiceContracts/models/Module.php
Call to method addNativeCondition
from undeclared class \App\QueryGenerator
(Did you mean class \Tests\App\QueryGenerator) Open
Open
$queryGenerator->addNativeCondition(['sc_related_to' => (int) $filterFields['parent_id']]);
- Exclude checks
Parameter $queryGenerator
has undeclared type \App\QueryGenerator
(Did you mean class \Tests\App\QueryGenerator) Open
Open
public function getQueryByRelatedField(Vtiger_ListView_Model $listviewModel, App\QueryGenerator $queryGenerator)
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class ServiceContracts_Module_Model extends Vtiger_Module_Model
- Exclude checks
The class ServiceContracts_Module_Model is not named in CamelCase. Open
Open
class ServiceContracts_Module_Model extends Vtiger_Module_Model
{
/**
* Function to get list view query for popup window.
*
- Read upRead up
- Exclude checks
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
Open
$queryGenerator->addNativeCondition(['sc_related_to' => (int) $filterFields['parent_id']]);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getQueryByRelatedField(Vtiger_ListView_Model $listviewModel, App\QueryGenerator $queryGenerator)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @param \App\QueryGenerator $queryGenerator
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if (!empty($filterFields['parent_id'])) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Function to get list view query for popup window.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @param Vtiger_ListView_Model $listviewModel
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ('HelpDesk' == $listviewModel->get('src_module') && !$listviewModel->isEmpty('filterFields')) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$filterFields = $listviewModel->get('filterFields');
- Exclude checks
Class name "ServiceContracts_Module_Model" is not in camel caps format Open
Open
class ServiceContracts_Module_Model extends Vtiger_Module_Model
- Exclude checks