YetiForceCompany/YetiForceCRM

View on GitHub
modules/SMSTemplates/views/VariablePanel.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Call to undeclared method \Vtiger_Viewer::assign
Open

        $viewer->assign('TEXT_PARSER', \App\TextParser::getInstance($selectedModule)->setType('sms'));

Call to undeclared method \Vtiger_Viewer::assign
Open

        $viewer->assign('MODULE', $moduleName);

Call to undeclared method \Vtiger_Viewer::assign
Open

        $viewer->assign('RELATED_LISTS', []);

Call to undeclared method \Vtiger_Viewer::assign
Open

        $viewer->assign('SELECTED_MODULE', $selectedModule);

Call to method getInstance from undeclared class \App\TextParser (Did you mean class \Tests\App\TextParser)
Open

        $viewer->assign('TEXT_PARSER', \App\TextParser::getInstance($selectedModule)->setType('sms'));

Call to undeclared method \Vtiger_Viewer::assign
Open

        $viewer->assign('BASE_LISTS', []);

Call to undeclared method \Vtiger_Viewer::assign
Open

        $viewer->assign('PARSER_TYPE', 'sms');

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

class SMSTemplates_VariablePanel_View extends Vtiger_VariablePanel_View

The class SMSTemplates_VariablePanel_View is not named in CamelCase.
Open

class SMSTemplates_VariablePanel_View extends Vtiger_VariablePanel_View
{
    /** {@inheritdoc} */
    public function process(App\Request $request)
    {

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

        $selectedModule = $request->getByType('selectedModule', \App\Purifier::STANDARD);

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

    {

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

        $viewer->view('VariablePanel.tpl', $moduleName);

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

    }

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

        $viewer = $this->getViewer($request);

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

        $viewer->assign('PARSER_TYPE', 'sms');

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

        $viewer->assign('SELECTED_MODULE', $selectedModule);

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

        $moduleName = $request->getModule();

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

        $viewer->assign('MODULE', $moduleName);

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

        $viewer->assign('TEXT_PARSER', \App\TextParser::getInstance($selectedModule)->setType('sms'));

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

        $viewer->assign('BASE_LISTS', []);

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

    public function process(App\Request $request)

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

        $viewer->assign('RELATED_LISTS', []);

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

class SMSTemplates_VariablePanel_View extends Vtiger_VariablePanel_View

There are no issues that match your filters.

Category
Status