self::$max_width) { return $v; } $keys = \array_keys($elem); } elseif (\array_keys($elem) !== $keys) { return $v; } } $children = $v->getContents(); if (!$children) { return $v; } // Ensure none of the child arrays are recursion or depth limit. We // don't care if their children are since they are the table cells foreach ($children as $childarray) { if (!$childarray instanceof ArrayValue || empty($childarray->getContents())) { return $v; } } $v->addRepresentation(new TableRepresentation($children), 0); return $v; } }