Classes/Backend/FormEngine/DataProvider/DefinitionError.php

Summary

Maintainability
A
0 mins
Test Coverage

addData accesses the super-global variable $GLOBALS.
Wontfix

    public function addData(array $result): array
    {
        $tableName = $result['tableName'];

        if (!isset($GLOBALS['TCA'][$tableName]['ctrl'][EntityTcaWriter::NOTIFICATION_ENTITY])) {

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

addData accesses the super-global variable $GLOBALS.
Wontfix

    public function addData(array $result): array
    {
        $tableName = $result['tableName'];

        if (!isset($GLOBALS['TCA'][$tableName]['ctrl'][EntityTcaWriter::NOTIFICATION_ENTITY])) {

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

There are no issues that match your filters.

Category
Status