YetiForceCompany/YetiForceCRM

View on GitHub
modules/OSSTimeControl/views/InRelation.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Call to undeclared method \Vtiger_Viewer::getTemplateVars (Did you mean expr->getTemplatePath())
Open

        $relatedModuleModel = $this->viewer->getTemplateVars('RELATED_MODULE');

Call to undeclared method \Vtiger_Viewer::assign
Open

        $this->viewer->assign('RELATED_MODULE_NAME', $relatedModuleModel->getName());

Call to undeclared method \Vtiger_Viewer::assign
Open

        $this->viewer->assign('RELATED_SUMMARY', $relatedModuleModel->getRelatedSummary($relationListView->getRelationQuery()));

Call to undeclared method \Vtiger_Viewer::getTemplateVars (Did you mean expr->getTemplatePath())
Open

        $relationListView = $this->viewer->getTemplateVars('VIEW_MODEL');

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

class OSSTimeControl_InRelation_View extends Vtiger_RelatedList_View

The class OSSTimeControl_InRelation_View is not named in CamelCase.
Open

class OSSTimeControl_InRelation_View extends Vtiger_RelatedList_View
{
    /** {@inheritdoc} */
    public function loadView()
    {

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

        return parent::loadView();

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

        $relatedModuleModel = $this->viewer->getTemplateVars('RELATED_MODULE');

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

    /** {@inheritdoc} */

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

        $this->viewer->assign('RELATED_MODULE_NAME', $relatedModuleModel->getName());

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

    }

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

        $this->viewer->assign('RELATED_SUMMARY', $relatedModuleModel->getRelatedSummary($relationListView->getRelationQuery()));

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

    public function loadView()

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

        $relationListView = $this->viewer->getTemplateVars('VIEW_MODEL');

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

        $this->viewer->view('RelatedSummary.tpl', $relatedModuleModel->getName());

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

    {

Line exceeds 120 characters; contains 128 characters
Open

        $this->viewer->assign('RELATED_SUMMARY', $relatedModuleModel->getRelatedSummary($relationListView->getRelationQuery()));

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

class OSSTimeControl_InRelation_View extends Vtiger_RelatedList_View

There are no issues that match your filters.

Category
Status