modules/Services/models/Record.php
Call to undeclared method \App\Db::createCommand
Open
Open
\App\Db::getInstance()->createCommand()->delete('vtiger_seproductsrel', ['or', ['productid' => $this->getId()], ['crmid' => $this->getId()]])->execute();
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Services_Record_Model extends Products_Record_Model
- Exclude checks
The class Services_Record_Model is not named in CamelCase. Open
Open
class Services_Record_Model extends Products_Record_Model
{
/** {@inheritdoc} */
public function delete()
{
- 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
\App\Db::getInstance()->createCommand()->delete('vtiger_seproductsrel', ['or', ['productid' => $this->getId()], ['crmid' => $this->getId()]])->execute();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function delete()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Line exceeds 120 characters; contains 161 characters Open
Open
\App\Db::getInstance()->createCommand()->delete('vtiger_seproductsrel', ['or', ['productid' => $this->getId()], ['crmid' => $this->getId()]])->execute();
- 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
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
parent::delete();
- Exclude checks
Class name "Services_Record_Model" is not in camel caps format Open
Open
class Services_Record_Model extends Products_Record_Model
- Exclude checks