src/LdapTools/Resolver/AttributeNameResolver.php
protected function selectedButNotPartOfEntry($attribute, array $entry)
    {
        $lcAttribute = strtolower($attribute);

        $inSelectedAttributes = in_array($lcAttribute, array_map('strtolower', $this->selectedAttributes));
        $existsInEntry = array_key_exists($lcAttribute, array_change_key_case($entry));

        return ($inSelectedAttributes && !$existsInEntry);
    }
protected function selectedButNotPartOfEntry($attribute, array $entry)
    {
        $lcAttribute = strtolower($attribute);

        $inSelectedAttributes = in_array($lcAttribute, array_map('strtolower', $this->selectedAttributes));
        $existsInEntry = array_key_exists($lcAttribute, array_change_key_case($entry));

        return ($inSelectedAttributes && !$existsInEntry);
    }
protected function selectedButNotPartOfEntry ( $ attribute , array $ entry ) { $ lcAttribute = strtolower ( $ attribute ) ; $ inSelectedAttributes = in_array ( $ lcAttribute , array_map ( 'strtolower' , $ this -> selectedAttributes ) ) ; $ existsInEntry = array_key_exists ( $ lcAttribute , array_change_key_case ( $ entry ) ) ; return ( $ inSelectedAttributes && ! $ existsInEntry ) ; }
Check whether the attribute name was selected to be returned but is not yet part of the entry. Adjusts the check
to be case insensitive.

@param string $attribute
@param array $entry
@return bool
Check whether the attribute name was selected to be returned but is not yet part of the entry . Adjusts the check to be case insensitive .