Code Duplication    Length = 3-3 lines in 2 locations

Classes/Tca/GridService.php 1 location

@@ 72-74 (lines=3) @@
69
70
        $this->tableName = $tableName;
71
72
        if (empty($GLOBALS['TCA'][$this->tableName])) {
73
            throw new InvalidKeyInArrayException('No TCA existence for table name: ' . $this->tableName, 1356945108);
74
        }
75
76
        $this->tca = $GLOBALS['TCA'][$this->tableName]['grid'];
77
    }

Classes/Tca/TableService.php 1 location

@@ 51-53 (lines=3) @@
48
    public function __construct($tableName)
49
    {
50
        $this->tableName = $tableName;
51
        if (empty($GLOBALS['TCA'][$this->tableName])) {
52
            throw new InvalidKeyInArrayException(sprintf('No TCA existence for table "%s"', $this->tableName), 1356945106);
53
        }
54
        $this->tca = $GLOBALS['TCA'][$this->tableName]['ctrl'];
55
        $this->columnTca = $GLOBALS['TCA'][$this->tableName]['columns'];
56
    }