protected function getSimilar($misspelled)
    {
        $result            = [];
        $soundexMisspelled = soundex($misspelled);

        foreach ($this->getMap()->getCollection() as $id => $dependency) {
            if ($soundexMisspelled === soundex($id)) {
                $result[] = $id;
            }
        }

        return implode(', ', $result);
    }
protected function getSimilar($misspelled)
    {
        $result            = [];
        $soundexMisspelled = soundex($misspelled);

        foreach ($this->getMap()->getCollection() as $id => $dependency) {
            if ($soundexMisspelled === soundex($id)) {
                $result[] = $id;
            }
        }

        return implode(', ', $result);
    }
protected function getSimilar ( $ misspelled ) { $ result = [ ] ; $ soundexMisspelled = soundex ( $ misspelled ) ; foreach ( $ this -> getMap ( ) -> getCollection ( ) as $ id => $ dependency ) { if ( $ soundexMisspelled === soundex ( $ id ) ) { $ result [ ] = $ id ; } } return implode ( ', ' , $ result ) ; }
Try to give a hint for a misspelled configuration entry.

@param string $misspelled The misspelled id

@author Benjamin Carl <opensource@clickalicious.de>

@return string The resulting comma seperated list of hints for possible entries
Try to give a hint for a misspelled configuration entry .