original_string: public static function getTcaForTable($tableName)
      {
          if (isset(self::$tcaCache[$tableName])) {
              return self::$tcaCache[$tableName];
          }
  
          if (!self::existsTable($tableName)) {
              throw new \BadMethodCallException('The table "' . $tableName . '" does not exist.', 1331315679);
          }
  
          if (!isset($GLOBALS['TCA'][$tableName])) {
              throw new \BadMethodCallException('The table "' . $tableName . '" has no TCA.', 1331315694);
          }
          self::$tcaCache[$tableName] = $GLOBALS['TCA'][$tableName];
  
          return self::$tcaCache[$tableName];
      }
code: public static function getTcaForTable($tableName)
      {
          if (isset(self::$tcaCache[$tableName])) {
              return self::$tcaCache[$tableName];
          }
  
          if (!self::existsTable($tableName)) {
              throw new \BadMethodCallException('The table "' . $tableName . '" does not exist.', 1331315679);
          }
  
          if (!isset($GLOBALS['TCA'][$tableName])) {
              throw new \BadMethodCallException('The table "' . $tableName . '" has no TCA.', 1331315694);
          }
          self::$tcaCache[$tableName] = $GLOBALS['TCA'][$tableName];
  
          return self::$tcaCache[$tableName];
      }
code_tokens: public static function getTcaForTable ( $ tableName ) { if ( isset ( self :: $ tcaCache [ $ tableName ] ) ) { return self :: $ tcaCache [ $ tableName ] ; } if ( ! self :: existsTable ( $ tableName ) ) { throw new \ BadMethodCallException ( 'The table "' . $ tableName . '" does not exist.' , 1331315679 ) ; } if ( ! isset ( $ GLOBALS [ 'TCA' ] [ $ tableName ] ) ) { throw new \ BadMethodCallException ( 'The table "' . $ tableName . '" has no TCA.' , 1331315694 ) ; } self :: $ tcaCache [ $ tableName ] = $ GLOBALS [ 'TCA' ] [ $ tableName ] ; return self :: $ tcaCache [ $ tableName ] ; }
docstring: Returns the TCA for a certain table.
  
  @param string $tableName
  the table name to look up, must not be empty
  
  @return array[] associative array with the TCA description for this table
  
  @throws \BadMethodCallException
docstring_tokens: Returns the TCA for a certain table .