YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/ConfigEditor/views/Detail.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Call to undeclared method \Vtiger_Viewer::assign
Open

        $viewer->assign('ACTIVE_TAB', $activeTab);

Call to undeclared method \Vtiger_Viewer::assign
Open

        $viewer->assign('CONFIG_NAMES', $this->getConfigNames());

Call to undeclared method \Vtiger_Viewer::assign
Open

        $viewer->assign('MODEL', $moduleModel);

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

class Settings_ConfigEditor_Detail_View extends Settings_Vtiger_Index_View

The class Settings_ConfigEditor_Detail_View is not named in CamelCase.
Open

class Settings_ConfigEditor_Detail_View extends Settings_Vtiger_Index_View
{
    /** {@inheritdoc} */
    protected $pageTitle = 'LBL_CONFIG_EDITOR';

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

    /** {@inheritdoc} */

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

    /**

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

        $moduleModel = Settings_ConfigEditor_Module_Model::getInstance()->init('Main');

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

        $viewer->view('Detail.tpl', $qualifiedName);

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

     */

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

        $qualifiedName = $request->getModule(false);

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

    public function getConfigNames(): array

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

        if ($request->has('tab')) {

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

        $viewer->assign('ACTIVE_TAB', $activeTab);

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

     * @return array

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('CONFIG_NAMES', $this->getConfigNames());

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

    protected $pageTitle = 'LBL_CONFIG_EDITOR';

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

        return $this->configNames;

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

            $activeTab = $request->getByType('tab', \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

    }

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

        $activeTab = 'Main';

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

    /** @var array config names */

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

     *

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

    {

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

    protected $configNames = ['Relation', 'Performance', 'Branding'];

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

    {

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

    }

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

     * Get config names.

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

        $viewer->assign('MODEL', $moduleModel);

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

class Settings_ConfigEditor_Detail_View extends Settings_Vtiger_Index_View

There are no issues that match your filters.

Category
Status