YetiForceCompany/YetiForceCRM

View on GitHub
api/webservice/WebserviceStandard/BaseModule/Fields.php

Summary

Maintainability
C
7 hrs
Test Coverage
A
97%

Function get has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
Open

    public function get(): array
    {
        $this->loadResponseParams();
        $moduleName = $this->controller->request->get('module');
        $module = \Vtiger_Module_Model::getInstance($moduleName);
Severity: Minor
Found in api/webservice/WebserviceStandard/BaseModule/Fields.php - About 4 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method get has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function get(): array
    {
        $this->loadResponseParams();
        $moduleName = $this->controller->request->get('module');
        $module = \Vtiger_Module_Model::getInstance($moduleName);
Severity: Major
Found in api/webservice/WebserviceStandard/BaseModule/Fields.php - About 3 hrs to fix

    The method get() has an NPath complexity of 11530. The configured NPath complexity threshold is 200.
    Open

        public function get(): array
        {
            $this->loadResponseParams();
            $moduleName = $this->controller->request->get('module');
            $module = \Vtiger_Module_Model::getInstance($moduleName);

    NPathComplexity

    Since: 0.1

    The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

    Example

    class Foo {
        function bar() {
            // lots of complicated code
        }
    }

    Source https://phpmd.org/rules/codesize.html#npathcomplexity

    The method get() has a Cyclomatic Complexity of 19. The configured cyclomatic complexity threshold is 10.
    Open

        public function get(): array
        {
            $this->loadResponseParams();
            $moduleName = $this->controller->request->get('module');
            $module = \Vtiger_Module_Model::getInstance($moduleName);

    CyclomaticComplexity

    Since: 0.1

    Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

    Example

    // Cyclomatic Complexity = 11
    class Foo {
    1   public function example() {
    2       if ($a == $b) {
    3           if ($a1 == $b1) {
                    fiddle();
    4           } elseif ($a2 == $b2) {
                    fiddle();
                } else {
                    fiddle();
                }
    5       } elseif ($c == $d) {
    6           while ($c == $d) {
                    fiddle();
                }
    7        } elseif ($e == $f) {
    8           for ($n = 0; $n < $h; $n++) {
                    fiddle();
                }
            } else {
                switch ($z) {
    9               case 1:
                        fiddle();
                        break;
    10              case 2:
                        fiddle();
                        break;
    11              case 3:
                        fiddle();
                        break;
                    default:
                        fiddle();
                        break;
                }
            }
        }
    }

    Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

    Missing class import via use statement (line '267', column '14').
    Open

                throw new \Api\Core\Exception('Incorrect json syntax: x-response-params', 400);

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Avoid using static access to class '\App\Language' in method 'get'.
    Open

                    $blocks[$block->id]['name'] = \App\Language::translate($block->label, $moduleName);

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\Language' in method 'get'.
    Open

                $fieldInfo['helpInfo'] = \App\Language::getTranslateHelpInfo($fieldModel, 'all');

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\Json' in method 'loadResponseParams'.
    Open

            if (!\App\Json::isJson($responseParams)) {

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\Language' in method 'get'.
    Open

                            'label' => \App\Language::translate($fieldModel->get('label'), $moduleName),

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\Fields\Tree' in method 'get'.
    Open

                    $fieldInfo['treeValues'] = \App\Fields\Tree::getTreeValues((int) $fieldModel->getFieldParams(), $moduleName);

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\Vtiger_Module_Model' in method 'get'.
    Open

            $module = \Vtiger_Module_Model::getInstance($moduleName);

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\Language' in method 'get'.
    Open

                    $fieldInfo['queryOperators'] = array_map(fn ($value) => \App\Language::translate($value, $moduleName), $fieldModel->getQueryOperators());

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\Json' in method 'loadResponseParams'.
    Open

            $this->responseParams = array_flip(\App\Json::decode($responseParams));

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\Vtiger_Inventory_Model' in method 'get'.
    Open

                $inventoryInstance = \Vtiger_Inventory_Model::getInstance($moduleName);

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\Api\WebserviceStandard\Fields' in method 'get'.
    Open

                \Api\WebserviceStandard\Fields::loadWebserviceByField($fieldModel, $this);

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')'
    Open

                    $blocks[$block->id] = array_filter($blockProperties, fn ($v) => !\is_object($v));

    Avoid variables with short names like $v. Configured minimum length is 3.
    Open

                    $blocks[$block->id] = array_filter($blockProperties, fn ($v) => !\is_object($v));

    ShortVariable

    Since: 0.2

    Detects when a field, local, or parameter has a very short name.

    Example

    class Something {
        private $q = 15; // VIOLATION - Field
        public static function main( array $as ) { // VIOLATION - Formal
            $r = 20 + $this->q; // VIOLATION - Local
            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                $r += $this->q;
            }
        }
    }

    Source https://phpmd.org/rules/naming.html#shortvariable

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        description="Returns information about fields, blocks and inventory based on the selected module",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        type="object",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        required={"status", "result"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\JsonContent(ref="#/components/schemas/BaseModule_Get_Fields_Response"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *    @OA\Schema(

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\JsonContent(type="array", @OA\Items(type="string", enum={"inventory", "blocks", "privileges", "dbStructure", "queryOperators"})),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        security={{"basicAuth" : {}, "ApiKeyAuth" : {}, "token" : {}}},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Parameter(name="X-ENCRYPTED", in="header", @OA\Schema(ref="#/components/schemas/Header-Encrypted"), required=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        description="Fields, blocks and inventory details",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Parameter(name="moduleName", in="path", @OA\Schema(type="string"), description="Module name", required=true, example="Contacts"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        title="Base module - Response action fields",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        description="Returns information about fields, blocks and inventory based on the selected module",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        summary="Get data about fields, blocks and inventory",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Parameter(name="moduleName", in="path", @OA\Schema(type="string"), description="Module name", required=true, example="Contacts"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *    @OA\Schema(

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        schema="BaseModule_Get_Fields_Response",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        tags={"BaseModule"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        security={{"basicAuth" : {}, "ApiKeyAuth" : {}, "token" : {}}},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Parameter(name="X-ENCRYPTED", in="header", @OA\Schema(ref="#/components/schemas/Header-Encrypted"), required=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Response(response=200, description="Fields, blocks and inventory details",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\JsonContent(ref="#/components/schemas/BaseModule_Get_Fields_Response"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        required={"status", "result"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\JsonContent(type="array", @OA\Items(type="string", enum={"inventory", "blocks", "privileges", "dbStructure", "queryOperators"})),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Response(response=200, description="Fields, blocks and inventory details",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\XmlContent(ref="#/components/schemas/BaseModule_Get_Fields_Response"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        description="Fields, blocks and inventory details",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        tags={"BaseModule"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Parameter(name="x-response-params", in="header", description="The header contains information about additional data to be returned in the response [Json array]", required=false,

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\XmlContent(ref="#/components/schemas/BaseModule_Get_Fields_Response"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        type="object",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Property(property="status", type="integer", enum={0, 1}, description="A numeric value of 0 or 1 that indicates whether the communication is valid. 1 - success , 0 - error"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Parameter(name="x-response-params", in="header", description="The header contains information about additional data to be returned in the response [Json array]", required=false,

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        schema="BaseModule_Get_Fields_Response",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="maxwidthcolumn", type="integer", description="Max width column", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        path="/webservice/WebserviceStandard/{moduleName}/Fields",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="restrictedDomains", type="object", title="Email restricted domains, available only for type of field: email",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        summary="Get data about fields, blocks and inventory",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        title="Base module - Response action fields",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="formats", type="object", title="File Format, available only for type of field: multiImage, image",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="label", type="string", description="Field label translated into the user's language", example="Subject"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="jpg", description="List of file data formats", example="jpg"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="header_field", type="object", title="Field configuration available in the header",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isReadOnly", description="Check if the field is read only (based on profiles), depends on header `x-response-params`", type="boolean", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="type", type="string", description="Type", example="value"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="dbStructure", type="object", title="Info about field structure in database, depends on header `x-response-params`",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="restrictedDomains", type="object", title="Email restricted domains, available only for type of field: email",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="yeti.com", description="List of domains reserved by email", example="yeti.com"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="uitype", type="integer", description="Field UiType", example=1),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isEditableReadOnly", description="Check if the field is editable or read only (based on the field type), depends on header `x-response-params`", type="boolean", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="type", type="string", description="Abstract type of this column.", example="integer"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                required={"name", "label", "type", "mandatory", "defaultvalue", "presence", "quickcreate", "masseditable", "header_field", "maxlengthtext", "maximumlength", "maxwidthcolumn", "tabindex", "fieldtype", "id", "uitype", "sequence", "fieldparams", "blockId", "helpInfo"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="presence", type="boolean", description="Check if field is active", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="type", type="string", description="Type", example="value"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="picklistvalues", type="object", title="Picklist values, available only for type of field: picklist, multipicklist, multiowner, multiReferenceValue, inventoryLimit, languages, currencyList, fileLocationType, taxes, multiListFields, mailScannerFields, country, modules, sharedOwner, categoryMultipicklist, tree",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="currency_symbol", type="string", title="Currency symbol, available only for type of field: currency"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isEditable", description="Check if the field is editable, depends on header `x-response-params`", type="boolean", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="fieldparams", description="Field params", type="object"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="fieldparams", description="Field params", type="object"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="name", type="string", description="Name of this column (without quotes).", example="parent_id"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="masseditable", type="boolean", description="Check if field is quick create enabled", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isEditable", description="Check if the field is editable, depends on header `x-response-params`", type="boolean", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="blockId", type="integer", description="Field block id", example=280),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="phpType", type="string", description="The PHP type of this column.", example="integer"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                @OA\AdditionalProperties(

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="quickcreate", type="boolean", description="Check if field is active", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="maxlengthtext", type="integer", description="Max length text", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="tabindex", type="integer", description="Field tab index", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="date-format", type="string", title="Date format, available only for type of field: date, datetime"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="limit", type="integer", title="Limit the amount of images, available only for type of field: multiImage, image"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="name", type="string", description="Name of this column (without quotes).", example="parent_id"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="allowNull", type="boolean", description="Whether this column can be null.", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                required={"name", "label", "type", "mandatory", "defaultvalue", "presence", "quickcreate", "masseditable", "header_field", "maxlengthtext", "maximumlength", "maxwidthcolumn", "tabindex", "fieldtype", "id", "uitype", "sequence", "fieldparams", "blockId", "helpInfo"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="defaultvalue", type="string", description="Default field value", example=""),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="class", type="string", description="Gui class", example="badge-info"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="maximumlength", type="string", description="Maximum field range", example="-2147483648,2147483647"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="maximumlength", type="string", description="Maximum field range", example="-2147483648,2147483647"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="date-format", type="string", title="Date format, available only for type of field: date, datetime"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="decimal_separator", type="string", title="Currency decimal separator, available only for type of field: currency"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="yeti.com", description="List of domains reserved by email", example="yeti.com"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="blockId", type="integer", description="Field block id", example=280),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="presence", type="boolean", description="Check if field is active", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="limit", type="integer", title="Limit the amount of images, available only for type of field: multiImage, image"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="dbType", type="string", description="The DB type of this column.", example="int(10)"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="defaultValue", type="string", description="Default value of this column", example="10"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="enumValues", type="string", description="Enumerable values.", example=""),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="enumValues", type="string", description="Enumerable values.", example=""),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Property(property="result", type="object", title="Fields parameters", required={"fields", "blocks"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="fieldtype", type="string", description="Field short data type", example="V"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isReadOnly", description="Check if the field is read only (based on profiles), depends on header `x-response-params`", type="boolean", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isCreatable", description="Check if the field is creatable, depends on header `x-response-params`", type="boolean", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isEditableReadOnly", description="Check if the field is editable or read only (based on the field type), depends on header `x-response-params`", type="boolean", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="dbStructure", type="object", title="Info about field structure in database, depends on header `x-response-params`",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="defaultValue", type="string", description="Default value of this column", example="10"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="name", type="string", description="Field name", example="subject"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="label", type="string", description="Field label translated into the user's language", example="Subject"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="class", type="string", description="Gui class", example="badge-info"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="currency_symbol", type="string", title="Currency symbol, available only for type of field: currency"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="decimal_separator", type="string", title="Currency decimal separator, available only for type of field: currency"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="id", type="integer", description="Field ID", example=24862),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="sequence", description="Sequence field", type="integer", example=24862),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="allowNull", type="boolean", description="Whether this column can be null.", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="type", type="string", description="Field type", example="string"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="mandatory", type="boolean", description="Check if field is mandatory", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="quickcreate", type="boolean", description="Check if field is active", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="masseditable", type="boolean", description="Check if field is quick create enabled", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="time-format", type="string", title="Time format, available only for type of field: time"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="formats", type="object", title="File Format, available only for type of field: multiImage, image",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isEditableHidden", description="Check if the field is hidden in the edit (based on the field type), depends on header `x-response-params`", type="boolean", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="helpInfo", type="string", description="Additional field description", example="Edit,Detail"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="picklistvalues", type="object", title="Picklist values, available only for type of field: picklist, multipicklist, multiowner, multiReferenceValue, inventoryLimit, languages, currencyList, fileLocationType, taxes, multiListFields, mailScannerFields, country, modules, sharedOwner, categoryMultipicklist, tree",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="time-format", type="string", title="Time format, available only for type of field: time"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                @OA\AdditionalProperties(

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="name", type="string", description="Field name", example="subject"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="header_field", type="object", title="Field configuration available in the header",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="id", type="integer", description="Field ID", example=24862),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="sequence", description="Sequence field", type="integer", example=24862),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="mandatory", type="boolean", description="Check if field is mandatory", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="maxlengthtext", type="integer", description="Max length text", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="group_separator", type="string", title="Currency group separator, available only for type of field: currency"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isViewable", description="Check if the field is viewable, depends on header `x-response-params`", type="boolean", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isCreatable", description="Check if the field is creatable, depends on header `x-response-params`", type="boolean", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\Property(property="fields", type="object", title="List of all available fields in the module",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\Property(property="fields", type="object", title="List of all available fields in the module",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="fieldtype", type="string", description="Field short data type", example="V"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="group_separator", type="string", title="Currency group separator, available only for type of field: currency"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="jpg", description="List of file data formats", example="jpg"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="helpInfo", type="string", description="Additional field description", example="Edit,Detail"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Property(property="status", type="integer", enum={0, 1}, description="A numeric value of 0 or 1 that indicates whether the communication is valid. 1 - success , 0 - error"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="type", type="string", description="Field type", example="string"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="defaultvalue", type="string", description="Default field value", example=""),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="maxwidthcolumn", type="integer", description="Max width column", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="tabindex", type="integer", description="Field tab index", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isEditableHidden", description="Check if the field is hidden in the edit (based on the field type), depends on header `x-response-params`", type="boolean", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="phpType", type="string", description="The PHP type of this column.", example="integer"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="size", type="integer", description="Display size of the column.", example=10),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="precision", type="integer", description="Precision of the column data, if it is numeric.", example=10),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="scale", type="integer", description="Scale of the column data, if it is numeric.", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="isPrimaryKey", type="boolean", description="Whether this column is a primary key", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="referenceList", type="object", title="List of related modules, available only for reference field",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\AdditionalProperties(type="object", title="Tree item",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                            @OA\Property(property="tree", description="Tree id", type="string", example="T10"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="label", description="Block label", type="string", example="Account details"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="iscustom", description="Determines if the block has been added by the user", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="referenceList", type="object", title="List of related modules, available only for reference field",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                            @OA\Property(property="parent", description="Parent tree id", type="string", example="T1"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="icon", description="Block icon class", type="string",  example="far fa-calendar-alt"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="label", description="Field label translated into the user's language", type="string", example="Unit price"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        @OA\Property(property="result", type="object", title="Fields parameters", required={"fields", "blocks"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="uitype", type="integer", description="Field UiType", example=1),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isViewable", description="Check if the field is viewable, depends on header `x-response-params`", type="boolean", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="type", type="string", description="Abstract type of this column.", example="integer"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="dbType", type="string", description="The DB type of this column.", example="int(10)"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="comment", type="string", description="Comment of this column.", example=""),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\AdditionalProperties(description="Tree item", type="string", example="Accounts"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\Property(property="blocks", type="object", title="List of all available blocks in the module, depends on header `x-response-params`",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\Property(property="inventory", type="object", title="Inventory field group, available depending on the type of module, depends on header `x-response-params`",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="type", description="Field type", type="string", example="UnitPrice"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="defaultEditValue", type="object", title="Default field value in editable format",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="isPrimaryKey", type="boolean", description="Whether this column is a primary key", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="treeValues", type="object", title="Tree items, available only for tree field",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\AdditionalProperties(type="object", title="Tree item",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    required={"id", "tabid", "label", "sequence", "showtitle", "visible", "increateview", "ineditview", "indetailview", "display_status", "iscustom", "icon", "name"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="scale", type="integer", description="Scale of the column data, if it is numeric.", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                @OA\Property(property="1", type="object", title="Inventory field list",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="value", type="string", description="Value in editable format", example="Some value"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="raw", type="string", description="Raw value", example="T10"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="showtitle", description="Specifies whether the title should be visible", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="iscustom", description="Determines if the block has been added by the user", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="type", description="Field type", type="string", example="UnitPrice"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="comment", type="string", description="Comment of this column.", example=""),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                            @OA\Property(property="id", description="Number tree without prefix", type="integer", example=1),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                            @OA\Property(property="tree", description="Tree id", type="string", example="T10"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                            @OA\Property(property="parent", description="Parent tree id", type="string", example="T1"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="defaultEditValue", type="object", title="Default field value in editable format",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="value", type="string", description="Value in editable format", example="Some value"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\Property(property="blocks", type="object", title="List of all available blocks in the module, depends on header `x-response-params`",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                @OA\AdditionalProperties(type="object", title="Block details",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="sequence", description="Block sequence", type="integer", example=1),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="showtitle", description="Specifies whether the title should be visible", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="display_status", description="Determines whether the block should be expanded", type="integer", example=2),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="name", description="Block name translated into the user's language", type="string", example="Informacje podstawowe o firmie"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                @OA\Property(property="1", type="object", title="Inventory field list",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="columnname", description="Field column name in db", type="string", example="price"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                @OA\AdditionalProperties(type="object", title="Block details",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="tabid", description="Module id", type="integer", example=9),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="indetailview", description="Determines the visibility in detail view", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="icon", description="Block icon class", type="string",  example="far fa-calendar-alt"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            @OA\Property(property="inventory", type="object", title="Inventory field group, available depending on the type of module, depends on header `x-response-params`",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="autoIncrement", type="boolean", description="Whether this column is auto-incremental", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                            @OA\Property(property="id", description="Number tree without prefix", type="integer", example=1),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="id", description="Block id", type="integer", example=195),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="isSummary", description="Is the field contains summary", type="boolean", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="size", type="integer", description="Display size of the column.", example=10),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="treeValues", type="object", title="Tree items, available only for tree field",

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                            @OA\Property(property="text", description="Tree value", type="string", example="Tree value"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="isSummary", description="Is the field contains summary", type="boolean", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="unsigned", type="boolean", description="Whether this column is unsigned.", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isEmptyPicklistOptionAllowed", description="Defines empty picklist element availability", type="boolean", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="isEmptyPicklistOptionAllowed", description="Defines empty picklist element availability", type="boolean", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="raw", type="string", description="Raw value", example="T10"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="label", description="Block label", type="string", example="Account details"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="sequence", description="Block sequence", type="integer", example=1),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="visible", description="Determines the visibility", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *        ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="unsigned", type="boolean", description="Whether this column is unsigned.", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="increateview", description="Determines the visibility in creat view", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="ineditview", description="Determines the visibility in edit view", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="display_status", description="Determines whether the block should be expanded", type="integer", example=2),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="label", description="Field label translated into the user's language", type="string", example="Unit price"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="isVisibleInDetail", description="Check if field is visible in detail view", type="boolean", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="precision", type="integer", description="Precision of the column data, if it is numeric.", example=10),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="autoIncrement", type="boolean", description="Whether this column is auto-incremental", example=false),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="queryOperators", type="object", description="Field query operators, depends on header `x-response-params`"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\AdditionalProperties(description="Tree item", type="string", example="Accounts"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                            @OA\Property(property="text", description="Tree value", type="string", example="Tree value"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    required={"id", "tabid", "label", "sequence", "showtitle", "visible", "increateview", "ineditview", "indetailview", "display_status", "iscustom", "icon", "name"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="tabid", description="Module id", type="integer", example=9),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="increateview", description="Determines the visibility in creat view", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="indetailview", description="Determines the visibility in detail view", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="name", description="Block name translated into the user's language", type="string", example="Informacje podstawowe o firmie"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="columnname", description="Field column name in db", type="string", example="price"),

    Spaces must be used for alignment; tabs are not allowed
    Open

                    continue;

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['isCreatable'] = $isEditable || 4 === $fieldModel->get('displaytype');

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['isEditableReadOnly'] = $fieldModel->isEditableReadOnly();

    Spaces must be used for alignment; tabs are not allowed
    Open

                if ($returnDbStructure) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                if ($fieldModel->get('defaultvalue')) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                }

    Spaces must be used for alignment; tabs are not allowed
    Open

        protected function loadResponseParams(): void

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="queryOperators", type="object", description="Field query operators, depends on header `x-response-params`"),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="id", description="Block id", type="integer", example=195),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="visible", description="Determines the visibility", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\Property(property="ineditview", description="Determines the visibility in edit view", type="integer", example=0),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *            ),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\AdditionalProperties(type="object", title="Inventory field details", required={"label", "type", "columnname", "isSummary", "isVisibleInDetail"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                    @OA\AdditionalProperties(type="object", title="Inventory field details", required={"label", "type", "columnname", "isSummary", "isVisibleInDetail"},

    Spaces must be used for alignment; tabs are not allowed
    Open

         *                        @OA\Property(property="isVisibleInDetail", description="Check if field is visible in detail view", type="boolean", example=true),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *    ),

    Spaces must be used for alignment; tabs are not allowed
    Open

        {

    Spaces must be used for alignment; tabs are not allowed
    Open

            foreach ($module->getFields() as $fieldModel) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                if ($returnQueryOperators) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                }

    Spaces must be used for alignment; tabs are not allowed
    Open

                            'isSummary' => $fieldModel->isSummary(),

    Spaces must be used for alignment; tabs are not allowed
    Open

        {

    Spaces must be used for alignment; tabs are not allowed
    Open

            $module = \Vtiger_Module_Model::getInstance($moduleName);

    Spaces must be used for alignment; tabs are not allowed
    Open

                $fieldInfo = $fieldModel->getFieldInfo();

    Spaces must be used for alignment; tabs are not allowed
    Open

                }

    Spaces must be used for alignment; tabs are not allowed
    Open

            }

    Spaces must be used for alignment; tabs are not allowed
    Open

            if (isset($this->responseParams['inventory']) && $module->isInventory()) {

    Spaces must be used for alignment; tabs are not allowed
    Open

        }

    Spaces must be used for alignment; tabs are not allowed
    Open

            }

    Spaces must be used for alignment; tabs are not allowed
    Open

            $return = $inventoryFields = $fields = $blocks = [];

    Spaces must be used for alignment; tabs are not allowed
    Open

                if ($returnBlocks && !isset($blocks[$block->id])) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                $fieldInfo['uitype'] = $fieldModel->getUIType();

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['treeValues'] = \App\Fields\Tree::getTreeValues((int) $fieldModel->getFieldParams(), $moduleName);

    Spaces must be used for alignment; tabs are not allowed
    Open

                return;

    Spaces must be used for alignment; tabs are not allowed
    Open

        public function get(): array

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $blockProperties = get_object_vars($block);

    Spaces must be used for alignment; tabs are not allowed
    Open

                }

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $isEditable = $fieldModel->isEditable();

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['referenceList'] = $fieldModel->getReferenceList();

    Spaces must be used for alignment; tabs are not allowed
    Open

         */

    Spaces must be used for alignment; tabs are not allowed
    Open

            $returnBlocks = isset($this->responseParams['blocks']);

    Spaces must be used for alignment; tabs are not allowed
    Open

                $block = $fieldModel->get('block');

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['isViewable'] = $fieldModel->isViewable();

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['dbStructure'] = $fieldModel->getDBColumnType(false);

    Spaces must be used for alignment; tabs are not allowed
    Open

            $return['fields'] = $fields;

    Spaces must be used for alignment; tabs are not allowed
    Open

            }

    Spaces must be used for alignment; tabs are not allowed
    Open

                            'type' => $fieldModel->getType(),

    Spaces must be used for alignment; tabs are not allowed
    Open

         */

    Spaces must be used for alignment; tabs are not allowed
    Open

            $returnDbStructure = isset($this->responseParams['dbStructure']);

    Spaces must be used for alignment; tabs are not allowed
    Open

                $fieldInfo['fieldparams'] = $fieldModel->getFieldParams();

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['defaultEditValue'] = $fieldModel->getUITypeModel()->getApiEditValue($fieldModel->getDefaultFieldValue());

    Spaces must be used for alignment; tabs are not allowed
    Open

                $fieldsInInventory = $inventoryInstance->getFieldsByBlocks();

    Spaces must be used for alignment; tabs are not allowed
    Open

         * @return void

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->responseParams = array_flip(\App\Json::decode($responseParams));

    Spaces must be used for alignment; tabs are not allowed
    Open

                }

    Spaces must be used for alignment; tabs are not allowed
    Open

                }

    Spaces must be used for alignment; tabs are not allowed
    Open

                }

    Spaces must be used for alignment; tabs are not allowed
    Open

                $fields[$fieldModel->getName()] = $fieldInfo;

    Spaces must be used for alignment; tabs are not allowed
    Open

                    }

    Spaces must be used for alignment; tabs are not allowed
    Open

            $moduleName = $this->controller->request->get('module');

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['queryOperators'] = array_map(fn ($value) => \App\Language::translate($value, $moduleName), $fieldModel->getQueryOperators());

    Spaces must be used for alignment; tabs are not allowed
    Open

            return $return;

    Spaces must be used for alignment; tabs are not allowed
    Open

            }

    Spaces must be used for alignment; tabs are not allowed
    Open

                $fieldInfo['id'] = $fieldModel->getId();

    Spaces must be used for alignment; tabs are not allowed
    Open

                if ($fieldModel->isReferenceField()) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                            'label' => \App\Language::translate($fieldModel->get('label'), $moduleName),

    Spaces must be used for alignment; tabs are not allowed
    Open

            }

    Spaces must be used for alignment; tabs are not allowed
    Open

            $this->loadResponseParams();

    Spaces must be used for alignment; tabs are not allowed
    Open

         * Load response params.

    Spaces must be used for alignment; tabs are not allowed
    Open

         * )

    Spaces must be used for alignment; tabs are not allowed
    Open

                if ($returnPrivileges) {

    Spaces must be used for alignment; tabs are not allowed
    Open

            $returnQueryOperators = isset($this->responseParams['queryOperators']);

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['isReadOnly'] = $fieldModel->isReadOnly();

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $blocks[$block->id] = array_filter($blockProperties, fn ($v) => !\is_object($v));

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['isEditable'] = $isEditable;

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['isEditableHidden'] = 9 === $fieldModel->get('displaytype');

    Spaces must be used for alignment; tabs are not allowed
    Open

                $fieldInfo['helpInfo'] = \App\Language::getTranslateHelpInfo($fieldModel, 'all');

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $fieldInfo['isEmptyPicklistOptionAllowed'] = $fieldModel->isEmptyPicklistOptionAllowed();

    Spaces must be used for alignment; tabs are not allowed
    Open

            if ($returnBlocks) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                $inventoryInstance = \Vtiger_Inventory_Model::getInstance($moduleName);

    Spaces must be used for alignment; tabs are not allowed
    Open

                if (isset($fieldsInInventory[1])) {

    Spaces must be used for alignment; tabs are not allowed
    Open

        /**

    Spaces must be used for alignment; tabs are not allowed
    Open

            $responseParams = $this->controller->request->getHeader('x-response-params');

    Spaces must be used for alignment; tabs are not allowed
    Open

                $fieldInfo['sequence'] = $fieldModel->get('sequence');

    Spaces must be used for alignment; tabs are not allowed
    Open

                }

    Spaces must be used for alignment; tabs are not allowed
    Open

                $return['blocks'] = $blocks;

    Spaces must be used for alignment; tabs are not allowed
    Open

                            'isVisibleInDetail' => $fieldModel->isVisibleInDetail(),

    Spaces must be used for alignment; tabs are not allowed
    Open

            if (empty($responseParams) || '[]' === $responseParams) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                throw new \Api\Core\Exception('Incorrect json syntax: x-response-params', 400);

    Spaces must be used for alignment; tabs are not allowed
    Open

                $fieldInfo['blockId'] = $block->id;

    Spaces must be used for alignment; tabs are not allowed
    Open

                }

    Spaces must be used for alignment; tabs are not allowed
    Open

                        ];

    Spaces must be used for alignment; tabs are not allowed
    Open

                \Api\WebserviceStandard\Fields::loadWebserviceByField($fieldModel, $this);

    Spaces must be used for alignment; tabs are not allowed
    Open

                    $blocks[$block->id]['name'] = \App\Language::translate($block->label, $moduleName);

    Spaces must be used for alignment; tabs are not allowed
    Open

                }

    Spaces must be used for alignment; tabs are not allowed
    Open

                        $inventoryFields[1][$fieldName] = [

    Spaces must be used for alignment; tabs are not allowed
    Open

                            'columnname' => $fieldModel->getColumnName(),

    Spaces must be used for alignment; tabs are not allowed
    Open

         *

    Spaces must be used for alignment; tabs are not allowed
    Open

        }

    Spaces must be used for alignment; tabs are not allowed
    Open

            $returnPrivileges = isset($this->responseParams['privileges']);

    Spaces must be used for alignment; tabs are not allowed
    Open

                if (!$fieldModel->isActiveField()) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                if (isset($fieldInfo['picklistvalues']) && $fieldModel->isEmptyPicklistOptionAllowed()) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                if ($fieldModel->isTreeField()) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                    foreach ($fieldsInInventory[1] as $fieldName => $fieldModel) {

    Spaces must be used for alignment; tabs are not allowed
    Open

                $return['inventory'] = $inventoryFields;

    Spaces must be used for alignment; tabs are not allowed
    Open

            if (!\App\Json::isJson($responseParams)) {

    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

        public $allowedHeaders = ['x-response-params'];

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

        /**

    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

         * @OA\Get(

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

         *

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

         *        path="/webservice/WebserviceStandard/{moduleName}/Fields",

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

        /** @var string[] Response params, options allowed: ["inventory","blocks","privileges","dbStructure","queryOperators"] */

    Line exceeds 120 characters; contains 149 characters
    Open

         *            @OA\JsonContent(type="array", @OA\Items(type="string", enum={"inventory", "blocks", "privileges", "dbStructure", "queryOperators"})),

    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 $responseParams = [];

    Line exceeds 120 characters; contains 145 characters
    Open

         *        @OA\Parameter(name="moduleName", in="path", @OA\Schema(type="string"), description="Module name", required=true, example="Contacts"),

    Line exceeds 120 characters; contains 193 characters
    Open

         *        @OA\Parameter(name="x-response-params", in="header", description="The header contains information about additional data to be returned in the response [Json array]", required=false,

    Line exceeds 120 characters; contains 125 characters
    Open

        /** @var string[] Response params, options allowed: ["inventory","blocks","privileges","dbStructure","queryOperators"] */

    Line exceeds 120 characters; contains 131 characters
    Open

         *        @OA\Parameter(name="X-ENCRYPTED", in="header", @OA\Schema(ref="#/components/schemas/Header-Encrypted"), required=true),

    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

         * Get data about fields, blocks and inventory.

    Line exceeds 120 characters; contains 189 characters
    Open

         *        @OA\Property(property="status", type="integer", enum={0, 1}, description="A numeric value of 0 or 1 that indicates whether the communication is valid. 1 - success , 0 - error"),

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

        public $allowedMethod = ['GET'];

    Line exceeds 120 characters; contains 149 characters
    Open

         *                    @OA\Property(property="currency_symbol", type="string", title="Currency symbol, available only for type of field: currency"),

    Line exceeds 120 characters; contains 131 characters
    Open

         *                        @OA\Property(property="yeti.com", description="List of domains reserved by email", example="yeti.com"),

    Line exceeds 120 characters; contains 357 characters
    Open

         *                    @OA\Property(property="picklistvalues", type="object", title="Picklist values, available only for type of field: picklist, multipicklist, multiowner, multiReferenceValue, inventoryLimit, languages, currencyList, fileLocationType, taxes, multiListFields, mailScannerFields, country, modules, sharedOwner, categoryMultipicklist, tree",

    Line exceeds 120 characters; contains 160 characters
    Open

         *                    @OA\Property(property="limit", type="integer", title="Limit the amount of images, available only for type of field: multiImage, image"),

    Line exceeds 120 characters; contains 177 characters
    Open

         *                    @OA\Property(property="isCreatable", description="Check if the field is creatable, depends on header `x-response-params`", type="boolean", example=true),

    Line exceeds 120 characters; contains 175 characters
    Open

         *                    @OA\Property(property="isEditable", description="Check if the field is editable, depends on header `x-response-params`", type="boolean", example=true),

    Line exceeds 120 characters; contains 140 characters
    Open

         *                    @OA\Property(property="helpInfo", type="string", description="Additional field description", example="Edit,Detail"),

    Line exceeds 120 characters; contains 121 characters
    Open

         *                        @OA\Property(property="class", type="string", description="Gui class", example="badge-info"),

    Line exceeds 120 characters; contains 124 characters
    Open

         *                    @OA\Property(property="fieldtype", type="string", description="Field short data type", example="V"),

    Line exceeds 120 characters; contains 158 characters
    Open

         *                    @OA\Property(property="group_separator", type="string", title="Currency group separator, available only for type of field: currency"),

    Line exceeds 120 characters; contains 145 characters
    Open

         *                    @OA\Property(property="formats", type="object", title="File Format, available only for type of field: multiImage, image",

    Line exceeds 120 characters; contains 223 characters
    Open

         *                    @OA\Property(property="isEditableReadOnly", description="Check if the field is editable or read only (based on the field type), depends on header `x-response-params`", type="boolean", example=false),

    Line exceeds 120 characters; contains 218 characters
    Open

         *                    @OA\Property(property="isEditableHidden", description="Check if the field is hidden in the edit (based on the field type), depends on header `x-response-params`", type="boolean", example=false),

    Line exceeds 120 characters; contains 147 characters
    Open

         *                        @OA\Property(property="name", type="string", description="Name of this column (without quotes).", example="parent_id"),

    Line exceeds 120 characters; contains 139 characters
    Open

         *                        @OA\Property(property="defaultValue", type="string", description="Default value of this column", example="10"),

    Line exceeds 120 characters; contains 286 characters
    Open

         *                required={"name", "label", "type", "mandatory", "defaultvalue", "presence", "quickcreate", "masseditable", "header_field", "maxlengthtext", "maximumlength", "maxwidthcolumn", "tabindex", "fieldtype", "id", "uitype", "sequence", "fieldparams", "blockId", "helpInfo"},

    Line exceeds 120 characters; contains 124 characters
    Open

         *                    @OA\Property(property="defaultvalue", type="string", description="Default field value", example=""),

    Line exceeds 120 characters; contains 131 characters
    Open

         *                    @OA\Property(property="quickcreate", type="boolean", description="Check if field is active", example=true),

    Line exceeds 120 characters; contains 123 characters
    Open

         *                    @OA\Property(property="maxwidthcolumn", type="integer", description="Max width column", example=0),

    Line exceeds 120 characters; contains 141 characters
    Open

         *                        @OA\Property(property="allowNull", type="boolean", description="Whether this column can be null.", example=true),

    Line exceeds 120 characters; contains 146 characters
    Open

         *                    @OA\Property(property="masseditable", type="boolean", description="Check if field is quick create enabled", example=true),

    Line exceeds 120 characters; contains 147 characters
    Open

         *                    @OA\Property(property="maximumlength", type="string", description="Maximum field range", example="-2147483648,2147483647"),

    Line exceeds 120 characters; contains 147 characters
    Open

         *                    @OA\Property(property="date-format", type="string", title="Date format, available only for type of field: date, datetime"),

    Line exceeds 120 characters; contains 129 characters
    Open

         *                    @OA\Property(property="header_field", type="object", title="Field configuration available in the header",

    Line exceeds 120 characters; contains 137 characters
    Open

         *                    @OA\Property(property="time-format", type="string", title="Time format, available only for type of field: time"),

    Line exceeds 120 characters; contains 175 characters
    Open

         *                    @OA\Property(property="isViewable", description="Check if the field is viewable, depends on header `x-response-params`", type="boolean", example=true),

    Line exceeds 120 characters; contains 137 characters
    Open

         *                        @OA\Property(property="type", type="string", description="Abstract type of this column.", example="integer"),

    Line exceeds 120 characters; contains 162 characters
    Open

         *                    @OA\Property(property="dbStructure", type="object", title="Info about field structure in database, depends on header `x-response-params`",

    Line exceeds 120 characters; contains 125 characters
    Open

         *                        @OA\Property(property="enumValues", type="string", description="Enumerable values.", example=""),

    Line exceeds 120 characters; contains 156 characters
    Open

         *                    @OA\Property(property="restrictedDomains", type="object", title="Email restricted domains, available only for type of field: email",

    Line exceeds 120 characters; contains 121 characters
    Open

         *                    @OA\Property(property="maxlengthtext", type="integer", description="Max length text", example=0),

    Line exceeds 120 characters; contains 162 characters
    Open

         *                    @OA\Property(property="decimal_separator", type="string", title="Currency decimal separator, available only for type of field: currency"),

    Line exceeds 120 characters; contains 152 characters
    Open

         *                    @OA\Property(property="label", type="string", description="Field label translated into the user's language", example="Subject"),

    Line exceeds 120 characters; contains 132 characters
    Open

         *                    @OA\Property(property="mandatory", type="boolean", description="Check if field is mandatory", example=true),

    Line exceeds 120 characters; contains 128 characters
    Open

         *                    @OA\Property(property="presence", type="boolean", description="Check if field is active", example=true),

    Line exceeds 120 characters; contains 139 characters
    Open

         *                        @OA\Property(property="phpType", type="string", description="The PHP type of this column.", example="integer"),

    Line exceeds 120 characters; contains 141 characters
    Open

         *                    @OA\Property(property="ineditview", description="Determines the visibility in edit view", type="integer", example=0),

    Line exceeds 120 characters; contains 135 characters
    Open

         *                        @OA\Property(property="columnname", description="Field column name in db", type="string", example="price"),

    Line exceeds 120 characters; contains 125 characters
    Open

         *                            @OA\Property(property="text", description="Tree value", type="string", example="Tree value"),

    Line exceeds 120 characters; contains 197 characters
    Open

         *                    @OA\Property(property="isReadOnly", description="Check if the field is read only (based on profiles), depends on header `x-response-params`", type="boolean", example=false),

    Line exceeds 120 characters; contains 137 characters
    Open

         *                        @OA\Property(property="dbType", type="string", description="The DB type of this column.", example="int(10)"),

    Line exceeds 120 characters; contains 129 characters
    Open

         *                        @OA\Property(property="size", type="integer", description="Display size of the column.", example=10),

    Line exceeds 120 characters; contains 153 characters
    Open

         *                        @OA\Property(property="autoIncrement", type="boolean", description="Whether this column is auto-incremental", example=false),

    Line exceeds 120 characters; contains 141 characters
    Open

         *                        @OA\Property(property="unsigned", type="boolean", description="Whether this column is unsigned.", example=false),

    Line exceeds 120 characters; contains 123 characters
    Open

         *                            @OA\Property(property="parent", description="Parent tree id", type="string", example="T1"),

    Line exceeds 120 characters; contains 173 characters
    Open

         *                    @OA\Property(property="name", description="Block name translated into the user's language", type="string", example="Informacje podstawowe o firmie"),

    Line exceeds 120 characters; contains 178 characters
    Open

         *            @OA\Property(property="inventory", type="object", title="Inventory field group, available depending on the type of module, depends on header `x-response-params`",

    Line exceeds 120 characters; contains 125 characters
    Open

         *                    @OA\Property(property="treeValues", type="object", title="Tree items, available only for tree field",

    Line exceeds 120 characters; contains 168 characters
    Open

         *                    @OA\Property(property="isEmptyPicklistOptionAllowed", description="Defines empty picklist element availability", type="boolean", example=false),

    Line exceeds 120 characters; contains 125 characters
    Open

         *                    @OA\Property(property="visible", description="Determines the visibility", type="integer", example=0),

    Line exceeds 120 characters; contains 145 characters
    Open

         *                    @OA\Property(property="indetailview", description="Determines the visibility in detail view", type="integer", example=0),

    Line exceeds 120 characters; contains 133 characters
    Open

         *                    @OA\Property(property="icon", description="Block icon class", type="string",  example="far fa-calendar-alt"),

    Line exceeds 120 characters; contains 155 characters
    Open

         *                    @OA\Property(property="queryOperators", type="object", description="Field query operators, depends on header `x-response-params`"),

    Line exceeds 120 characters; contains 136 characters
    Open

         *                        @OA\Property(property="value", type="string", description="Value in editable format", example="Some value"),

    Line exceeds 120 characters; contains 153 characters
    Open

         *            @OA\Property(property="blocks", type="object", title="List of all available blocks in the module, depends on header `x-response-params`",

    Line exceeds 120 characters; contains 186 characters
    Open

         *                    required={"id", "tabid", "label", "sequence", "showtitle", "visible", "increateview", "ineditview", "indetailview", "display_status", "iscustom", "icon", "name"},

    Line exceeds 120 characters; contains 154 characters
    Open

         *                        @OA\Property(property="precision", type="integer", description="Precision of the column data, if it is numeric.", example=10),

    Line exceeds 120 characters; contains 144 characters
    Open

         *                    @OA\Property(property="increateview", description="Determines the visibility in creat view", type="integer", example=0),

    Line exceeds 120 characters; contains 154 characters
    Open

         *                    @OA\Property(property="display_status", description="Determines whether the block should be expanded", type="integer", example=2),

    Line exceeds 120 characters; contains 127 characters
    Open

         *                        @OA\Property(property="comment", type="string", description="Comment of this column.", example=""),

    Line exceeds 120 characters; contains 151 characters
    Open

         *                    @OA\Property(property="iscustom", description="Determines if the block has been added by the user", type="integer", example=0),

    Line exceeds 120 characters; contains 146 characters
    Open

         *                    @OA\Property(property="referenceList", type="object", title="List of related modules, available only for reference field",

    Line exceeds 120 characters; contains 145 characters
    Open

         *                        @OA\Property(property="scale", type="integer", description="Scale of the column data, if it is numeric.", example=0),

    Line exceeds 120 characters; contains 129 characters
    Open

         *                            @OA\Property(property="id", description="Number tree without prefix", type="integer", example=1),

    Line exceeds 120 characters; contains 157 characters
    Open

         *                        @OA\Property(property="isVisibleInDetail", description="Check if field is visible in detail view", type="boolean", example=true),

    Line exceeds 120 characters; contains 149 characters
    Open

         *                        @OA\Property(property="isPrimaryKey", type="boolean", description="Whether this column is a primary key", example=false),

    Line exceeds 120 characters; contains 124 characters
    Open

         *                    @OA\Property(property="label", description="Block label", type="string", example="Account details"),

    Line exceeds 120 characters; contains 172 characters
    Open

         *                    @OA\AdditionalProperties(type="object", title="Inventory field details", required={"label", "type", "columnname", "isSummary", "isVisibleInDetail"},

    Line exceeds 120 characters; contains 133 characters
    Open

                    $fieldInfo['defaultEditValue'] = $fieldModel->getUITypeModel()->getApiEditValue($fieldModel->getDefaultFieldValue());

    Line exceeds 120 characters; contains 128 characters
    Open

         *                    @OA\Property(property="defaultEditValue", type="object", title="Default field value in editable format",

    Line exceeds 120 characters; contains 147 characters
    Open

         *                    @OA\Property(property="showtitle", description="Specifies whether the title should be visible", type="integer", example=0),

    Line exceeds 120 characters; contains 159 characters
    Open

         *                        @OA\Property(property="label", description="Field label translated into the user's language", type="string", example="Unit price"),

    Line exceeds 120 characters; contains 139 characters
    Open

         *                        @OA\Property(property="isSummary", description="Is the field contains summary", type="boolean", example=false),

    Line exceeds 120 characters; contains 125 characters
    Open

                    $fieldInfo['treeValues'] = \App\Fields\Tree::getTreeValues((int) $fieldModel->getFieldParams(), $moduleName);

    Line exceeds 120 characters; contains 153 characters
    Open

                    $fieldInfo['queryOperators'] = array_map(fn ($value) => \App\Language::translate($value, $moduleName), $fieldModel->getQueryOperators());

    Space before opening parenthesis of function call prohibited
    Open

                    $blocks[$block->id] = array_filter($blockProperties, fn ($v) => !\is_object($v));

    Space before opening parenthesis of function call prohibited
    Open

                    $fieldInfo['queryOperators'] = array_map(fn ($value) => \App\Language::translate($value, $moduleName), $fieldModel->getQueryOperators());

    There are no issues that match your filters.

    Category
    Status