modules/Settings/Currency/models/ListView.php
Call to undeclared method \App\Db\Query::where
Open
Open
$query->where(['deleted' => 0]);
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Settings_Currency_ListView_Model extends Settings_Vtiger_ListView_Model
- Exclude checks
The class Settings_Currency_ListView_Model is not named in CamelCase. Open
Open
class Settings_Currency_ListView_Model extends Settings_Vtiger_ListView_Model
{
/** {@inheritdoc} */
public function getBasicListQuery(): App\Db\Query
{
- 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
$query = parent::getBasicListQuery();
- 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
$query->where(['deleted' => 0]);
- 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
return $query;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getBasicListQuery(): App\Db\Query
- Exclude checks
Class name "Settings_Currency_ListView_Model" is not in camel caps format Open
Open
class Settings_Currency_ListView_Model extends Settings_Vtiger_ListView_Model
- Exclude checks