Browscap\Writer\CsvWriter::detectMasterParent PHP Method

detectMasterParent() private method

private detectMasterParent ( string $key, array $properties ) : string
$key string
$properties array
return string
    private function detectMasterParent($key, array $properties)
    {
        $this->getLogger()->debug('check if the element can be marked as "MasterParent"');
        if (in_array($key, ['DefaultProperties', '*']) || empty($properties['Parent']) || 'DefaultProperties' === $properties['Parent']) {
            return 'true';
        }
        return 'false';
    }