protected function getCoveredTags(array $tags)
    {
        // Finds for actual tag names
        $matched = [];
        foreach ($this->tagCoverageList as $original) {
            $actual = $this->tagSearch($original, $tags);
            if (null !== $actual) {
                $matched[] = $actual;
            }
        }

        // Whitelist
        if ('whitelist' === $this->tagCoverageStrategy) {
            return $matched;
        }

        // Blacklist
        return array_values(array_diff($tags, $matched));
    }
protected function getCoveredTags(array $tags)
    {
        // Finds for actual tag names
        $matched = [];
        foreach ($this->tagCoverageList as $original) {
            $actual = $this->tagSearch($original, $tags);
            if (null !== $actual) {
                $matched[] = $actual;
            }
        }

        // Whitelist
        if ('whitelist' === $this->tagCoverageStrategy) {
            return $matched;
        }

        // Blacklist
        return array_values(array_diff($tags, $matched));
    }
protected function getCoveredTags ( array $ tags ) { // Finds for actual tag names $ matched = [ ] ; foreach ( $ this -> tagCoverageList as $ original ) { $ actual = $ this -> tagSearch ( $ original , $ tags ) ; if ( null !== $ actual ) { $ matched [ ] = $ actual ; } } // Whitelist if ( 'whitelist' === $ this -> tagCoverageStrategy ) { return $ matched ; } // Blacklist return array_values ( array_diff ( $ tags , $ matched ) ) ; }
Calculates which tags are covered.

The search performed internally is case-insensitive.

@param array $tags

@return array
Calculates which tags are covered .