Language/src/LanguageClient.php
private function normalizeFeatures(array $features)
    {
        $results = [];

        foreach ($features as $feature) {
            $featureName = array_key_exists($feature, $this->featureShortNames)
                ? $this->featureShortNames[$feature]
                : $feature;

            $results[$featureName] = true;
        }

        return $results;
    }
private function normalizeFeatures(array $features)
    {
        $results = [];

        foreach ($features as $feature) {
            $featureName = array_key_exists($feature, $this->featureShortNames)
                ? $this->featureShortNames[$feature]
                : $feature;

            $results[$featureName] = true;
        }

        return $results;
    }
private function normalizeFeatures ( array $ features ) { $ results = [ ] ; foreach ( $ features as $ feature ) { $ featureName = array_key_exists ( $ feature , $ this -> featureShortNames ) ? $ this -> featureShortNames [ $ feature ] : $ feature ; $ results [ $ featureName ] = true ; } return $ results ; }
Configures features in a way the API expects.

@param array $features An array of features to normalize.
@return array
Configures features in a way the API expects .