original_string: protected function buildAliases()
      {
          $this->routes = ArrayHelper::merge($this->defaultRoutes, $this->routes);
          foreach ($this->routes as $alias => $route) {
              Yii::setAlias($alias, $route);
          }
      }
code: protected function buildAliases()
      {
          $this->routes = ArrayHelper::merge($this->defaultRoutes, $this->routes);
          foreach ($this->routes as $alias => $route) {
              Yii::setAlias($alias, $route);
          }
      }
code_tokens: protected function buildAliases ( ) { $ this -> routes = ArrayHelper :: merge ( $ this -> defaultRoutes , $ this -> routes ) ; foreach ( $ this -> routes as $ alias => $ route ) { Yii :: setAlias ( $ alias , $ route ) ; } }
docstring: Sets needed routes aliases
docstring_tokens: Sets needed routes aliases