original_string: public static function getDisplayLanguages($languages, $languageRedirects)
      {
          foreach ($languages as $key => $value) {
              $key = (isset($languageRedirects[$key])) ? $languageRedirects[$key] : $key;
              $redirects[$key] = $value;
          }
          return $redirects;
      }
code: public static function getDisplayLanguages($languages, $languageRedirects)
      {
          foreach ($languages as $key => $value) {
              $key = (isset($languageRedirects[$key])) ? $languageRedirects[$key] : $key;
              $redirects[$key] = $value;
          }
          return $redirects;
      }
code_tokens: public static function getDisplayLanguages ( $ languages , $ languageRedirects ) { foreach ( $ languages as $ key => $ value ) { $ key = ( isset ( $ languageRedirects [ $ key ] ) ) ? $ languageRedirects [ $ key ] : $ key ; $ redirects [ $ key ] = $ value ; } return $ redirects ; }
docstring: Returns list of languages with applied language redirects.
  
  @param array $languages
  @param array $languageRedirects
  @return array
docstring_tokens: Returns list of languages with applied language redirects .