YetiForceCompany/YetiForceCRM

View on GitHub
modules/Faq/ConfigTemplate.php

Summary

Maintainability
A
0 mins
Test Coverage
F
42%

Call to method naturalNumber from undeclared class \App\Validator (Did you mean class \Tests\App\Validator)
Open

            return $arg && \App\Validator::naturalNumber($arg);
Severity: Critical
Found in modules/Faq/ConfigTemplate.php by phan

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

            $arg = func_get_arg(0);

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

        'validation' => function () {

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

            $arg = func_get_arg(0);

Line exceeds 120 characters; contains 150 characters
Open

        'description' => 'Default module view. Values: KnowledgeBase, List, ListPreview or DashBoard, refresh menu files after you change this value',

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

    'knowledgeBaseArticleLimit' => [

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

        'description' => 'Default module view. Values: KnowledgeBase, List, ListPreview or DashBoard, refresh menu files after you change this value',

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

            return $arg && \App\Validator::naturalNumber($arg);

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

        'default' => 50,

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

        }

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

        'default' => 'KnowledgeBase',

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

        'validation' => function () {

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

            return 'List' === $arg || 'ListPreview' === $arg || 'DashBoard' === $arg || 'KnowledgeBase' === $arg;

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

        'description' => 'Article limit in the knowledge base window',

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

    'defaultViewName' => [

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

        }

There are no issues that match your filters.

Category
Status