All this can be simplified:

```php
foreach ($this->selectors as $alias => $selector) {
    $this->selectors[$alias] = strtr($selector, $this->replacements);
}
```