modules/Accounts/models/Relation.php
Call to method addJoin
from undeclared class \App\QueryGenerator
(Did you mean class \Tests\App\QueryGenerator) Open
Open
$queryGenerator->addJoin(['INNER JOIN', 'vtiger_seproductsrel', 'vtiger_products.productid = vtiger_seproductsrel.productid']);
- Exclude checks
Call to method addNativeCondition
from undeclared class \App\QueryGenerator
(Did you mean class \Tests\App\QueryGenerator) Open
Open
$queryGenerator->addNativeCondition(['vtiger_seproductsrel.crmid' => $this->get('parentRecord')->getId()]);
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Accounts_Relation_Model extends Vtiger_Relation_Model
- Exclude checks
The class Accounts_Relation_Model is not named in CamelCase. Open
Open
class Accounts_Relation_Model extends Vtiger_Relation_Model
{
/**
* Get products.
*/
- 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
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$queryGenerator = $this->getQueryGenerator();
- Exclude checks
Line exceeds 120 characters; contains 135 characters Open
Open
$queryGenerator->addJoin(['INNER JOIN', 'vtiger_seproductsrel', 'vtiger_products.productid = vtiger_seproductsrel.productid']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Get products.
- 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 getProducts()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$queryGenerator->addNativeCondition(['vtiger_seproductsrel.crmid' => $this->get('parentRecord')->getId()]);
- 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
$queryGenerator->addJoin(['INNER JOIN', 'vtiger_seproductsrel', 'vtiger_products.productid = vtiger_seproductsrel.productid']);
- Exclude checks
Class name "Accounts_Relation_Model" is not in camel caps format Open
Open
class Accounts_Relation_Model extends Vtiger_Relation_Model
- Exclude checks