YetiForceCompany/YetiForceCRM

View on GitHub
api/webservice/ManageConsents/BaseModule/GetConsentsForEntry.php

Summary

Maintainability
A
2 hrs
Test Coverage
B
89%

Function post has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

    public function post()
    {
        $relatedModule = 'Approvals';
        $referenceFieldModel = null;
        $queryGenerator = (new \App\QueryGenerator($this->controller->request->getModule()));
Severity: Minor
Found in api/webservice/ManageConsents/BaseModule/GetConsentsForEntry.php - About 1 hr 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 post has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function post()
    {
        $relatedModule = 'Approvals';
        $referenceFieldModel = null;
        $queryGenerator = (new \App\QueryGenerator($this->controller->request->getModule()));
Severity: Minor
Found in api/webservice/ManageConsents/BaseModule/GetConsentsForEntry.php - About 1 hr to fix

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

        public function post()
        {
            $relatedModule = 'Approvals';
            $referenceFieldModel = null;
            $queryGenerator = (new \App\QueryGenerator($this->controller->request->getModule()));

    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 '114', column '26').
    Open

            $queryGenerator = (new \App\QueryGenerator($this->controller->request->getModule()));

    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

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

                throw new \Api\Core\Exception('Not Found', 404);

    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 assigning values to variables in if clauses and the like (line '133', column '7').
    Open

        public function post()
        {
            $relatedModule = 'Approvals';
            $referenceFieldModel = null;
            $queryGenerator = (new \App\QueryGenerator($this->controller->request->getModule()));

    IfStatementAssignment

    Since: 2.7.0

    Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($foo = 'bar') { // possible typo
                // ...
            }
            if ($baz = 0) { // always false
                // ...
            }
        }
    }

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

    Avoid using static access to class '\App\Record' in method 'post'.
    Open

                    if (!\App\Record::isExists($recordId)) {

    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 assigning values to variables in if clauses and the like (line '124', column '13').
    Open

        public function post()
        {
            $relatedModule = 'Approvals';
            $referenceFieldModel = null;
            $queryGenerator = (new \App\QueryGenerator($this->controller->request->getModule()));

    IfStatementAssignment

    Since: 2.7.0

    Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($foo = 'bar') { // possible typo
                // ...
            }
            if ($baz = 0) { // always false
                // ...
            }
        }
    }

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

    Call to method getModuleModel from undeclared class \App\QueryGenerator (Did you mean class \Tests\App\QueryGenerator)
    Open

            foreach ($queryGenerator->getModuleModel()->getFieldsByType('multiReference', true) as $fieldModel) {

    Call to method getModuleModel from undeclared class \App\QueryGenerator (Did you mean class \Tests\App\QueryGenerator)
    Open

            $fieldToken = current($queryGenerator->getModuleModel()->getFieldsByType('token', true));

    Call to method __construct from undeclared class \App\QueryGenerator (Did you mean class \Tests\App\QueryGenerator)
    Open

            $queryGenerator = (new \App\QueryGenerator($this->controller->request->getModule()));

    Variable $recordData is undeclared
    Open

                'id' => $recordData['id'],

    Call to method setFields from undeclared class \App\QueryGenerator (Did you mean class \Tests\App\QueryGenerator)
    Open

                || empty($recordData = $queryGenerator->setFields(['id', $referenceFieldModel->getName()])

    Possibly zero references to use statement for classlike/namespace OA (\OpenApi\Annotations)
    Open

    use OpenApi\Annotations as OA;

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

         *            ),

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

         *            @OA\Schema(ref="#/components/schemas/BaseModule_Post_GetConsentsForEntry_Request")

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

         *        @OA\RequestBody(

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

         *                @OA\Schema(ref="#/components/schemas/BaseModule_Post_GetConsentsForEntry_Request")

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

         *        @OA\MediaType(

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

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

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

         *    },

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

         *                description="Required data for communication",

    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\Response(

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

         *        @OA\Response(

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

         *        @OA\Response(

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

         *        title="Request body for GetConsentsForEntry",

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

         *        type="object",

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

         *            property="result",

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

         *                property="id",

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

            $queryGenerator = (new \App\QueryGenerator($this->controller->request->getModule()));

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

            }

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

                || !$fieldToken

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

         *        summary="Gets the list of consents for specific entry",

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

         *                required=true,

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

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

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

         *            @OA\MediaType(

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

         *                mediaType="multipart/form-data",

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

         *        ),

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

         *        @OA\Response(

    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

         *            type="string"

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

         *            type="object",

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

         *                description="Record ID",

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

                    $referenceFieldModel = $fieldModel;

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

                'consents' => $consents

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

         *                @OA\Schema(ref="#/components/schemas/BaseModule_Post_GetConsentsForEntry_Request")

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

         *        tags={"BaseModule"},

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

         *                mediaType="application/x-www-form-urlencoded",

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

         *            description="`No sent token` OR `Invalid token`",

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

         *            description="No permissions for module",

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

         *            response=405,

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

         *                example=24842

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

         *                example=24842

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

         *                 type="object",

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

         *                description="Get the edit value in display view",

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

            foreach ($queryGenerator->getModuleModel()->getFieldsByType('multiReference', true) as $fieldModel) {

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

                if ($fieldModel->isActiveField() && $fieldModel->getReferenceList() === [$relatedModule]) {

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

                'id' => $recordData['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

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

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

         *            description="`No sent token` OR `Invalid token`",

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

         *            description="No permissions for module",

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

         *        @OA\Property(

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

         *            @OA\Property(

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

        public function post()

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

                    ->one())

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

            ) {

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

         *        security={

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

         *        ),

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

         *            description="Method Not Allowed",

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

         *        ),

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

         *            property="token",

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

         *            property="token",

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

         *            description="Entry unique ID (Token type field in the module is required)",

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

         *    ),

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

         *        title="Response body for GetConsentsForEntry",

    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\AdditionalProperties(description="Data from the associated module", type="integer", example=24862),

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

         *    ),

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

            if (!$referenceFieldModel

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

                throw new \Api\Core\Exception('Not Found', 404);

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

            return [

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

        }

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

         *        security={

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

         *            response=401,

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

         *        ),

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

         *            response=404,

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

         * @OA\Schema(

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

         *            description="Entry unique ID (Token type field in the module is required)",

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

         *            @OA\Property(

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

         *                property="consents",

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

         *            )

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

                    break;

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

                    if (!\App\Record::isExists($recordId)) {

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

                }

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

         *        tags={"BaseModule"},

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

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

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

         *                required=true,

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

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

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

         *        @OA\MediaType(

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

         *            response=401,

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

         *            response=403,

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

         *        type="object",

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

         *        title="Response body for GetConsentsForEntry",

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

            $fieldToken = current($queryGenerator->getModuleModel()->getFieldsByType('token', true));

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

         *            ),

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

         *            property="result",

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

         *        ),

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

         *            @OA\MediaType(

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

         *        ),

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

         *            description="Not Found",

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

         *            response=405,

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

         *        schema="BaseModule_Post_GetConsentsForEntry_Request",

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

         *        ),

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

         *        type="object",

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

         *                type="integer",

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

         *            ),

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

            $referenceFieldModel = null;

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

                || empty($recordData = $queryGenerator->setFields(['id', $referenceFieldModel->getName()])

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

         *        summary="Gets the list of consents for specific entry",

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

         *                description="Required data for communication",

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

         *        ),

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

         *        @OA\Response(

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

         *            response=404,

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

         *        @OA\Property(

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

         *                property="id",

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

         *        ),

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

         *            description="Specific response",

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

         *                @OA\AdditionalProperties(description="Data from the associated module", type="integer", example=24862),

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

         */

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

                foreach ($consents as $key => $recordId) {

    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

         *            description="List of consents for specific entry",

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

         *            @OA\JsonContent(ref="#/components/schemas/BaseModule_Post_GetConsentsForEntry_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

         *        @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(

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

         *            @OA\Property(

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

         *                description="Record ID",

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

         *                description="Get the edit value in display view",

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

                    ->createQuery()

    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\Response(

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

         *        @OA\Response(

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

         *        @OA\Response(

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

         *            description="Not Found",

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

         *        ),

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

         *        schema="BaseModule_Post_GetConsentsForEntry_Response",

    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

         *            description="Specific 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

         *                type="integer",

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

         *            @OA\Property(

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

                    ->addCondition($fieldToken->getName(), $this->controller->request->getByType('token', \App\Purifier::ALNUM), 'e')

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

            }

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

            $referenceUiTypeModel = $referenceFieldModel->getUITypeModel();

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

         *            description="Method Not Allowed",

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

         *        type="object",

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

         *            type="string"

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

         *        schema="BaseModule_Post_GetConsentsForEntry_Response",

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

         *        path="/webservice/ManageConsents/{moduleName}/GetConsentsForEntry",

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

         *                mediaType="multipart/form-data",

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

         *            )

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

         *                mediaType="application/x-www-form-urlencoded",

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

        {

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

         *            @OA\Schema(ref="#/components/schemas/BaseModule_Post_GetConsentsForEntry_Request")

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

            $relatedModule = 'Approvals';

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

         *            response=200,

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

                }

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

         *            description="List of consents for specific entry",

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

         *        @OA\Response(

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

                        unset($consents[$key]);

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

         *        ),

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

         *        schema="BaseModule_Post_GetConsentsForEntry_Request",

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

         *        title="Request body for GetConsentsForEntry",

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

         *    ),

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

         *        @OA\Property(

    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\RequestBody(

    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\Response(

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

         *            response=200,

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

         *            response=403,

    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

         *                property="consents",

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

         *    ),

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

            if ($consents = $referenceUiTypeModel->getArrayValues($recordData[$referenceFieldModel->getName()]) ?: []) {

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

         *

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

         *

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

         * @throws \Api\Core\Exception

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

         *

    Line exceeds 120 characters; contains 129 characters
    Open

                    ->addCondition($fieldToken->getName(), $this->controller->request->getByType('token', \App\Purifier::ALNUM), 'e')

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

        /**

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

         * @OA\Post(

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

         *        path="/webservice/ManageConsents/{moduleName}/GetConsentsForEntry",

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

        public $allowedMethod = ['POST'];

    Line exceeds 120 characters; contains 123 characters
    Open

         *                @OA\AdditionalProperties(description="Data from the associated module", type="integer", example=24862),

    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

         * Gets consents.

    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 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

         * @return array

    There are no issues that match your filters.

    Category
    Status